Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Toniq.list_pending_jobs #44

Open
Grafikart opened this issue Jul 12, 2017 · 1 comment
Open

Toniq.list_pending_jobs #44

Grafikart opened this issue Jul 12, 2017 · 1 comment

Comments

@Grafikart
Copy link

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.

@jessedijkstra
Copy link

jessedijkstra commented Oct 28, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants