[resolved] Built-in scheduling versus Advanced Python Scheduler (apsscheduler)


#1

As per a previous posting, I’m trying to assess whether Dramatiq does what we need. I’m a little unclear about the built-in ability to pass a delay into send_with_options() versus the reference in the documentation to apsscheduler.

(I get that apsscheduler has cron-like semantics and so on, i.e. higher level semantics).

My use case is to create timers which are persistent in the sense that the timer does not get lost if a given process dies (e.g. a Python native timer dies if the process dies). Two specific questions:

  1. If I use Dramatiq’s send_with_options(delay), is the delay persisted in the broker?
  2. Is there a reason to prefer apsscheduler over send_with_options(delay)?

#2
  1. If I use Dramatiq’s send_with_options(delay) , is the delay persisted in the broker?

Yes.

  1. Is there a reason to prefer apsscheduler over send_with_options(delay) ?

Not for your use case.


#3

Thanks for confirming!