Skip to content

Executor for APScheduler which doesn't execute jobs directrly, but pass it to Dramatiq to execute.

License

Notifications You must be signed in to change notification settings

cthtuf/apcsheduler-dramatiq-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

This package simple as hell. It provides one class which could be used as APScheduler executor.

It could be useful if you're using either APscheduler and Dramatiq and want to keep APscheduler as lightweight worker which only schedule tasks and Dramatiq as scalable task executor.

Note: Tasks could be executed not in the same time as in Job.run_next_time because of high load of the Dramatiq worker or any latencies in broker.

How to use it

Install

Install package via pip:

pip install apscheduler-dramatiq-executor

Configure

Put executor in apscheduler config:

APSCHEDULER_SETTINGS = {
  ...
  'apscheduler.executors.default': {
    'class': 'apscheduler_dramatiq_executor.executor:DramatiqExecutor',
  },
}

About

Executor for APScheduler which doesn't execute jobs directrly, but pass it to Dramatiq to execute.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages