toniq
toniq copied to clipboard
Toniq.list_pending_jobs
It would be nice to have methods to list current runing jobs and pending jobs. If you think it's interesting I could try to implement it myself.
As far as I know you can list the current jobs with Toniq.JobPersistence.jobs
. This will result in a list with maps similar to this:
[
%{
arguments: "results.com",
id: 13830,
version: 1,
vm: "edc6dda2-bbda-11e7-adb1-9801a799a117",
worker: :Elixir.Toniq.TestWorker
},
%{
arguments: "noresults.com",
id: 13831,
version: 1,
vm: "edc6dda2-bbda-11e7-adb1-9801a799a117",
worker: :Elixir.Toniq.TestWorker
}
]