[FR] Cancel enqueued task
See original GitHub issueIs 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
Issue Analytics
- State:
- Created a year ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top Results From Across the Web
How to cancel a task enqueued on Firebase Functions?
1. Tasks can be deleted using the @google-cloud/tasks SDK but you'll need the task name/ID. · @Dharmaraj this seems like an answer for...
Read more >How to cancel all queued BOSH tasks using director_ctl in ...
1. Login to BOSH Director VM using vcap credentials ( vcap credentials can be found on the Operations Manager Director tile, Credentials tab):...
Read more >Scheduled task cancellation #33 - sonus21/rqueue - GitHub
You can not cancel enqueued task now, you can delete it from dashboard.
Read more >4 Ways To Cancel Android WorkManager Tasks - Medium
The third method to cancel your work is the cancellation by name. This approach only works if u enqueue your work as unique...
Read more >How to cancel activities queued for more than an hour - IBM
The queued-activity-cancelling procedure also captures information about the cancelled activities (if an activity event monitor is active), and maintains a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Internal feature request number 235998431
Somewhat related: I wanted to set task name myself, so I can use the Cloud Tasks automatic deduplication.