jonhoo / faktory-rs

Rust bindings for Faktory clients and workers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removing/clearing the queue programmatically

rbozan opened this issue · comments

It is not clear to me how to remove the queue in Rust using the library. Basically, the equivalent of the Clear button in the WebUI :

image

cc @rustworthy in case you know

@rbozan thanks for pointing at that. Indeed, not all queue control actions are supported right now. We support pause/resume queues by names, and plan to cover the rest of functionality:

  • pause/resume all queues;
  • clear (effectively, remove) all queues;
  • clear (effectively, remove) queues by names;

Planning to deliver that after the ongoing work on the switch to async is finished. But a PR will be much appreciated!


For reference:

The relevant Faktory server code
The corresponding section in our bindings.


cc @jonhoo

Closed by #59