Celery 2.0 Documentationminute=30, day_of_week=1)) def every_monday_morning(): print("Execute every Monday at 7:30AM.") The syntax of these crontab expressions is very flexible. Some examples: Example Meaning crontab() Execute get_logger(**kwargs) logger.info("Adding %s + %s" % (x, y)) return x + y or using the decorator syntax: @task() def add(x, y, **kwargs): logger = add.get_logger(**kwargs) logger.info("Adding %s + %s" celeryd | awk ’{print $2}’ | xargs kill -9 6.3.7 Why won’t my Task run? Answer: There might be syntax errors preventing the tasks module being imported. You can find out if celery is able to run the0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.0 Documentationminute=30, day_of_week=1)) def every_monday_morning(): print("Execute every Monday at 7:30AM.") The syntax of these crontab expressions is very flexible. Some examples: Example Meaning crontab() Execute get_logger(**kwargs) logger.info("Adding %s + %s" % (x, y)) return x + y or using the decorator syntax: @task() def add(x, y, **kwargs): logger = add.get_logger(**kwargs) logger.info("Adding %s grep celeryd | awk '{print $2}' | xargs kill -9 Why won’t my Task run? Answer: There might be syntax errors preventing the tasks module being imported. You can find out if celery is able to run the0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 3.1 Documentationstore results in IronCache with the same Iron.io credentials, just set the results URL with the same syntax as the broker URL, but changing the start to ironcache: ironcache:://project_id:token@ This will CELERY_ENABLE_UTC = True To verify that your configuration file works properly, and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration log With the multi command you can start multiple workers, and there is a powerful command-line syntax to specify arguments for different workers too, e.g: $ celery multi start 10 -A proj -l info -Q:1-30 码力 | 607 页 | 2.27 MB | 1 年前3
Celery 3.1 Documentationstore results in IronCache with the same Iron.io credentials, just set the results URL with the same syntax as the broker URL, but changing the start to ironcache: ironcache:://project_id:token@ This will CELERY_ENABLE_UTC = True To verify that your configuration file works properly, and doesn’t contain any syntax errors, you can try to import it: $ python -m celeryconfig For a complete reference of configuration log With the multi command you can start multiple workers, and there is a powerful command-line syntax to specify arguments for different workers too, e.g: $ celery multi start 10 -A proj -l info -Q:1-30 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 2.1 Documentationget_logger(**kwargs) logger.info("Adding %s + %s" % (x, y)) return x + y or using the decorator syntax: 16 Chapter 2. User Guide Celery Documentation, Release 2.1.4 @task() def add(x, y, **kwargs): day_of_week=1), "args": (16, 16), }, } 40 Chapter 2. User Guide Celery Documentation, Release 2.1.4 The syntax of these crontab expressions are very flexible. Some examples: Example Meaning crontab() Execute celeryd | awk ’{print $2}’ | xargs kill -9 8.3.7 Why won’t my Task run? Answer: There might be syntax errors preventing the tasks module being imported. You can find out if Celery is able to run the0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 1.0 Documentationget_logger(**kwargs) logger.info("Adding %s + %s" % (x, y)) return x + y or using the decorator syntax: @task() def add(x, y, **kwargs): logger = add.get_logger(**kwargs) logger.info("Adding %s + %s" py module? (or in some other module Django loads by default, like models.py?). Also there might be syntax errors preventing the tasks module being imported. You can find out if celery is able to run the previously had: "celery.loaders.default", you now need "celery.loaders.default.Loader", using the previous syntax will result in a Depreca- tionWarning. • Detecting the loader is now lazy, and so is not done when0 码力 | 123 页 | 400.69 KB | 1 年前3
Celery 1.0 Documentationget_logger(**kwargs) logger.info("Adding %s + %s" % (x, y)) return x + y or using the decorator syntax: @task() def add(x, y, **kwargs): logger = add.get_logger(**kwargs) logger.info("Adding %s py module? (or in some other module Django loads by default, like models.py?). Also there might be syntax errors preventing the tasks module being imported. You can find out if celery is able to run the previously had: "celery.loaders.default", you now need "celery.loaders.default.Loader", using the previous syntax will result in a DeprecationWarning. Detecting the loader is now lazy, and so is not done when importing0 码力 | 221 页 | 283.64 KB | 1 年前3
Celery 2.1 Documentationget_logger(**kwargs) logger.info("Adding %s + %s" % (x, y)) return x + y or using the decorator syntax: @task() def add(x, y, **kwargs): logger = add.get_logger(**kwargs) logger.info("Adding %s "schedule": crontab(hour=7, minute=30, day_of_week=1), "args": (16, 16), }, } The syntax of these crontab expressions are very flexible. Some examples: Example Meaning crontab() Execute grep celeryd | awk '{print $2}' | xargs kill -9 Why won’t my Task run? Answer: There might be syntax errors preventing the tasks module being imported. You can find out if Celery is able to run the0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.3 Documentation"task": "tasks.add", "schedule": crontab(hour=7, minute=30, day_of_week=1), "args": (16, 16), }, } The syntax of these crontab expressions are very flexible. Some examples: Example Meaning crontab() Execute celeryd | awk ’{print $2}’ | xargs kill -9 8.3.8 Why won’t my Task run? Answer: There might be syntax errors preventing the tasks module being imported. You can find out if Celery is able to run the now terminates the program by calling os._exit, as it is the only way to ensure exit in the case of syntax errors, or other unrecoverable errors. • Fixed typo in maybe_timedelta (Issue #352). • celeryd:0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 Documentation"task": "tasks.add", "schedule": crontab(hour=7, minute=30, day_of_week=1), "args": (16, 16), }, } The syntax of these crontab expressions are very flexible. Some examples: 2.5. Periodic Tasks 41 Celery Documentation celeryd | awk ’{print $2}’ | xargs kill -9 8.3.7 Why won’t my Task run? Answer: There might be syntax errors preventing the tasks module being imported. You can find out if Celery is able to run the now terminates the program by calling os._exit, as it is the only way to ensure exit in the case of syntax errors, or other unrecoverable errors. 9.6. 2.2.5 127 Celery Documentation, Release 2.2.10 • Fixed0 码力 | 314 页 | 1.26 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













