question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FR] Cancel enqueued task

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
inlinedcommented, Jun 14, 2022

Internal feature request number 235998431

1reaction
naranjamecanicacommented, Sep 5, 2022

Somewhat related: I wanted to set task name myself, so I can use the Cloud Tasks automatic deduplication.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found