【发布时间】:2021-09-02 03:25:02
【问题描述】:
我正在尝试使用谷歌任务队列包"google.golang.org/appengine/taskqueue" 在 GCP App 引擎中的任务队列中安排任务,但出现以下错误
API error 5 (taskqueue: INVALID_TASK_NAME)
我的任务名称是string
name:= fmt.Sprintf("%s-trigger-message-%d-%s-%s", env.GetVersion(), userKey.IntID(), profileID, scheduledTime.Format("2006-01-02-15-04"))
你能帮忙吗,我在哪里做错了。网上参考资料不多。
【问题讨论】:
-
请添加实际使用的任务名称。
-
可以把格式化后的名字打印出来分享给我们吗?
-
@Debapriya 发布了答案,有帮助吗?
标签: go google-app-engine google-cloud-platform task-queue