Skip to content

Instantly share code, notes, and snippets.

@Quard
Created April 10, 2019 12:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Quard/dcaf6020e5d484f03e88ae951dd6b90e to your computer and use it in GitHub Desktop.
Save Quard/dcaf6020e5d484f03e88ae951dd6b90e to your computer and use it in GitHub Desktop.
The Python Celery Cookbook: Small Tool, Big Possibilities
from datetime import datetime
send_mail_task.apply_async(
(('noreply@example.com', ), 'Celery cookbook test', 'test', {}),
countdown=15 * 60
)
send_mail_task.apply_async(
(('noreply@example.com', ), 'Celery cookbook test', 'test', {}),
eta=datetime(2019, 5, 20, 7, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment