contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.78k stars 230 forks source link

Request: Add support for clearing/deleting queues to client API #399

Closed fkollmann closed 2 years ago

fkollmann commented 2 years ago

Currently, it is not possible to purge and delete queues from the client API.

As a worker I have jobs that are handled by temporary queues (e.g. for enforcing jobs to be processed locally on a specific instance). I need to be able to delete these temporary queues after the batch finished.

Faktory support stated: "We need an API to remotely clear/delete a queue. Can you open a faktory issue? You could then put this call in a success callback job."

Note: Since the workers already have a heartbeat, it would be great to register a queue to be deleted automatically, if its worker dies, e.g. RegisterDeleteOnWorkerDisconnect(queue, wid).