schedule-rs icon indicating copy to clipboard operation
schedule-rs copied to clipboard

Define an execution model

Open mehcode opened this issue 8 years ago • 1 comments

Currently jobs are run manually (with a helper method to run all currently pending jobs). We should define an execution model.

  1. Does it make sense to have more than one execution model (sync vs async)?

  2. How does the API look?

my_agenda.start()
  1. How does the agenda, itself, execute (in a thread or coordinated with an event loop)?

  2. How does each job execute (threadpool) ?

  • https://github.com/frewsxcv/rust-threadpool
  • http://alexcrichton.com/futures-rs/futures_cpupool/

mehcode avatar Mar 22 '17 10:03 mehcode

Are Jobs re-entrant?

Boscop avatar Oct 23 '17 18:10 Boscop