| 123456789101112131415161718192021222324252627282930313233343536373839 | rem Name of nodes to startrem here we have a single nodeset CELERYD_NODES=w1rem or we could have three nodes:rem CELERYD_NODES="w1 w2 w3"rem App instance to userem comment out this line if you don't use an appset CELERY_APP=projrem or fully qualified:rem CELERY_APP="proj.tasks:app"set PATH_TO_PROJECT=D:\home\site\wwwrootrem Absolute or relative path to the 'celery' and 'Python' command:set CELERY_BIN=%PATH_TO_PROJECT%\env\Scripts\celeryrem How to call manage.pyset CELERYD_MULTI=multirem - %n will be replaced with the first part of the nodename.rem - %I will be replaced with the current child process indexrem   and is important when using the prefork pool to avoid race conditions.set CELERYD_PID_FILE=%PATH_TO_PROJECT%\log\celerybeat.pidset CELERYD_LOG_FILE=%PATH_TO_PROJECT%\log\celerybeat.logset CELERYD_LOG_LEVEL=INFOrem CONFIG RELATED TO THE BEAT set CELERYD_DATABASE=djangoset CELERYD_SCHEDULER=django_celery_beat.schedulers:DatabaseSchedulerrem You might need to change th path of the Python runingset PYTHONPATH=%PYTHONPATH%;%PATH_TO_PROJECT%;cd %PATH_TO_PROJECT%del %CELERYD_PID_FILE%del %CELERYD_LOG_FILE%%CELERY_BIN% -A %CELERY_APP% beat -S %CELERYD_DATABASE% --logfile=%CELERYD_LOG_FILE% --pidfile=%CELERYD_PID_FILE% --scheduler %CELERYD_SCHEDULER% --loglevel=%CELERYD_LOG_LEVEL%
 |