oolymer / oo-worker

Polymer mixin to process batches of tasks sorted by priority.
MIT License
0 stars 0 forks source link

(feature) Problem: Retrieving the current state of the worker is difficult. #3

Open hastebrot opened 6 years ago

hastebrot commented 6 years ago

Proposed solution: Add a state property to oo.Worker. Track the current state.

enum WorkerState {
  READY = "READY",
  SCHEDULED = "SCHEDULED",
  RUNNING = "RUNNING",
  SUCCEEDED = "SUCCEEDED",
  FAILED = "FAILED",
  CANCELLED = "CANCELLED"
}