Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 987
Massimo Coluzzi Avatar asked Apr 27 '26 04:04

Massimo Coluzzi


2 Answers

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.

like image 86
Nibrass H Avatar answered Apr 30 '26 01:04

Nibrass H


September 2023 and google told me that I've to wait 7 days or create queues with different name.

like image 43
Luis Méndez Avatar answered Apr 30 '26 01:04

Luis Méndez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!