This package provides API interface for executing and scheduling tasks. Look through this examples of requests to API.
Get list of executed tasks:
curl -X GET http://localhost:8000/executed -H 'Content-Type: application/json'
Get details of the executed task (It will show result of task if result backend was used and TTL not expired):
curl -X GET http://localhost:8000/executed/:message_id -H 'Content-Type: application/json'
Execute task:
curl -X POST http://localhost:8000/execute -H 'Content-Type: application/json' -d '{"actor_name": "print_result", "kwargs": {"message_data": {"message_id": "123456789"},"result": "This actor is almost useless for direct calling. Use it as success-callback for other actors."}}'
Schedule task on certain time:
curl -X POST http://localhost:8000/schedule/by_date -H 'Content-Type: application/json' -d '{"actor_name": "print_resulst","run_date": "2019-02-11T07:31:00Z","kwargs": {"message_data": {"message_id": "123456789"},"result": "This actor is almost useless for direct calling. Use it as success-callback for other actors."}}'
Get list of scheduled tasks
curl -X GET http://localhost:8000/scheduled -H 'Content-Type: application/json'
- dramatiq
- django_dramatiq
- apscheduler