8

I started to work with Cloud Tasks, I am performing some tests so I created and deleted Cloud Tasks queues from the GCP console a couple of times. Every time I delete a queue and try to recreate it with the same name I get this error:

  • Error creating Queue: googleapi: Error 400: The queue cannot be created because a queue with this name existed too recently.

So, to create a new queue, I need to change the name every time. The error tells something about the "queue existed too recently" but I created the first queue more than a week ago and I keep getting the same error. I am quite confused about this error and it feels quite like a bug to me. I am wondering if the queue have actually been deleted or if I am collecting a bunch of unreachable queues into my project.

Is there someone else who got the same error? The fact that after a week I still get this error is the expected behavior? How much time do I need to wait until the namespace for a GCP Cloud Tasks queue becomes available again (if ever)?

Thanks a lot

Linda Lawton - DaImTo
  • 106,405
  • 32
  • 180
  • 449

1 Answers1

5

According to Official Documentation, after you delete the queue you must wait 7 days before recreating with the same name.

Please check if the queue has been deleted over more than 7 days. Wait some more days in order to re-use it.

If still you are getting the same error, please create a bug request in Public Issue Tracker to be investigated futher.

Nibrass H
  • 2,403
  • 1
  • 8
  • 14
  • 14
    7 days is a crazy wait. I have created a feature request. If you are facing the same issue you and come across this comment, please upvote the request: https://issuetracker.google.com/issues/187101566 – Lawrence Taur May 04 '21 at 06:21
  • It says issue does not exist. – Urvah Shabbir Jun 27 '22 at 17:07
  • 1
    7 days is really crazy. While using terraform to delete and recreate the queue. Now I will be waiting 7 days or creating queue with a new name and then updating cloud functions to take this new name. :D – Urvah Shabbir Jun 27 '22 at 17:08
  • 7 days is madness. Who thought that was a good idea? – torrange Jul 13 '22 at 11:37
  • 1
    I deleted the queue thinking I was just deleting the contents of the queue so I can fix something. Now I need to wait 7 days before I can continue developing? This is such a stupid thing. Anyone find a workaround? Thanks! – Shannon Cole Jul 16 '22 at 01:05