Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的任务是在 Wowza 媒体服务器中添加一个新的流,它必须在用户指定的时间发生。目前我正在为此使用 crontab 和 http 提供程序。我想要一个celery.beat实现。任何人都可以帮忙吗?
celery.beat
如果这是在特定时间执行的一次性任务,那么您不需要使用定期任务(celerybeat)。
相反,您可以使用 eta/countdown 参数task.apply_async:
task.apply_async
task.apply_async(eta=datetime(2012, 07, 1, 14, 30)) task.apply_async(countdown=30) # in 30 seconds
在这里阅读更多:
http://celery.github.com/celery/userguide/calling.html