-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onTaskDispatched with retry option is not working in firebase-functions v6 #1623
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
I'm having this issue too. My firebase-tools version: 13.22.1 |
Me too! Firebase tools version I guess doing |
Hi, thanks for providing all the info. I will raise this with the team. |
Hi @cabljac, Is there any news about this issue? We want to update our project to v6 but are currently blocked because of this. |
By the looks of the API specification code, the |
We are using it for some cloud tasks in v5.0.1 together with the |
Thanks for the quick reply! Do you know what firebase-tools version was used when deploying the cloud tasks in v5.0.1? |
We are using the latest version: |
Okay, yeah it does work in I logged the parameters that are sent to v5.1.1 (and v6):
v5.0.1 (and before):
It could be that |
Related issues
#1618 - Tried the solution proposed there but it did nothing
[REQUIRED] Version info
node:
v20.12.2
firebase-functions:
6.0.1
firebase-tools:
13.20.2
firebase-admin:
12.6.0
[REQUIRED] Test case
I am following this example from the docs to create a cloud task. The only thing I am changing in my project is adding an option to avoid retries. If I add this in firebase-functions v6, and launch the emulator or try to deploy, it breaks.
[REQUIRED] Steps to reproduce
firebase init
. In my case, I added typescript but I think it is irrelevant.firebase-functions
in thepackage.json
to v6.0.1onTaskDispatched
function to theindex.ts
file and add the retry option:npm run serve
ornpm run deploy
either way an error will show:[REQUIRED] Expected behavior
The expected behavior should be for the emulator to create the queue. This behavior is achieved in version 5.1.0 for example:
[REQUIRED] Actual behavior
From version 6.0.1, the emulator returns the error copied above:
And if I try to deploy it returns:
Error: Failed to parse build specification: - FirebaseError Unexpected key 'endpoints[cloudTaskTest].taskQueueTrigger.retry'. You may need to install a newer version of the Firebase CLI.
Were you able to successfully deploy your functions?
No, I was not able. The error message was:
Error: Failed to parse build specification: - FirebaseError Unexpected key 'endpoints[cloudTaskTest].taskQueueTrigger.retry'. You may need to install a newer version of the Firebase CLI.
The text was updated successfully, but these errors were encountered: