-
Notifications
You must be signed in to change notification settings - Fork 139
Description
A detailed description of the feature you would like to see added.
Hi thanks for the tool! My (summarized) use case is like this: Submit a few deep learning jobs to my workstation, and when all are done (i.e. GPU is finally idle), send me a Slack message such that I can come and use the idle GPU. For example, I will need the idle GPU to tentatively run some new commands, debug them, and when they look good, submit it to the queue.
Thus, it would be great to have a feature that, when the job is empty, run an extra command to notify users.
EDIT: Looks like I can use the "Callback" feature to handle it. Seems need to query pueue
to know whether the queue is empty now, thus it would be great if this information could be provided as a variable.
EDIT: Looks like it can be done by e.g.
pueue/pueue/src/daemon/callbacks.rs
Line 62 in 9a402d5
parameters.insert("id", task.id.to_string()); |
state.tasks.len()
.
Explain your usecase of the requested feature
(see above)
Alternatives
No response
Additional context
No response