Skip to content

Instantly share code, notes, and snippets.

@grayside
Last active September 16, 2019 21:21
Show Gist options
  • Save grayside/8af7816c415e64469f2d8337d57eed62 to your computer and use it in GitHub Desktop.
Save grayside/8af7816c415e64469f2d8337d57eed62 to your computer and use it in GitHub Desktop.
Create a scheduled, named task.
gcloud beta tasks create-http-task sitemap-rebuild --queue my-queue \
--url "https://cms.example123-uc.a.run.app/sitemap-rebuild" \
--schedule-time 2019-09-17T05:30:00Z
Created task [projects/my-project/locations/us-central1/queues/my-queue/tasks/sitemap-rebuild].
# HTTP 409
ERROR: (gcloud.beta.tasks.create-http-task) ALREADY_EXISTS: Requested entity already exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment