toniq icon indicating copy to clipboard operation
toniq copied to clipboard

Toniq.list_pending_jobs

Open Grafikart opened this issue 7 years ago • 1 comments

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.

Grafikart avatar Jul 12 '17 10:07 Grafikart

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
  }
]

jessedijkstra avatar Oct 28 '17 12:10 jessedijkstra