Closed
Description
Is your feature request related to a problem? Please describe.
Not applicable.
Describe the solution you'd like
I need to be able to cancel a task that was enqueued, like this pseudo-code:
const task = await queue.enqueue({ foo: true })
// Then...
await queue.cancel(task.id)
Describe alternatives you've considered
Maybe there's some way to cancel the task using @google-cloud/tasks
directly, but I didn't try yet.
EDIT: Apparently, it's not possible because the task ID is not returned by firebase-admin
.
Additional context
I've also asked on StackOverflow, but I think it's really a missing feature: https://stackoverflow.com/questions/72549309/how-to-cancel-a-task-enqueued-on-firebase-functions