affordablemobiles / GServerlessSupportLaravel

Run Laravel on Google Serverless
MIT License
26 stars 17 forks source link

Add us-central1 to region codes in TaskQueue Client #45

Closed flexgrip closed 5 years ago

flexgrip commented 5 years ago

Hello,

When trying to throw tasks onto the queue, I was hit with an error that basically meant that this package didn't know how to translate the GAE region code into an actual region.

I see that you have entries for Europe, but none of the US. I attempted to find a list of GAE region codes so I could just add all of them for you but I failed to find any. So I just listed us14 from my log entries, which translates to us-central1.

This fixed my issue and allowed me to get tasks onto the Cloud Tasks queue. But I still can't run them.

Anyway, thanks again! If you can point me to a list of all region codes, I will make a new PR with the entire list.

iamacarpet commented 5 years ago

Hello @flexgrip ,

I wish I could get hold of a list of all the region codes too, but sadly Google wouldn't provide them.

Happy to accept this one though, will merge now.

Regards, iamacarpet