Celery 2.3 Documentationcrashes if autoscale is enabled. growing and shrinking eventlet pools is still not supported. • py24 target removed from tox.ini. 9.5 2.3.1 release-date 2011-08-07 08:00 P.M BST 9.5.1 Fixes • The CELE for the task (if any). • Acknowledgement now happens in the pool callback. Can’t do ack in the job target, as it’s not pickleable (can’t share AMQP connection, etc.)). • Added note about .delay hanging the pool. Sender is the celery.concurrency.evlet.TaskPool instance. Provides arguments: • target The target function. • args Positional arguments. • kwargs Keyword arguments. Logging Signals setup_logging0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery v4.0.0 Documentationusing relative names. Absolute imports are the default in Python 3 so you don’t need this if you target that version. tasks.py: @app.task def add(x, y): return x + y >>> from tasks import add >>> systemd file: /etc/systemd/system/celery.service: [Unit] Description=Celery Service After=network.target [Service] Type=forking User=celery Group=celery EnvironmentFile=-/etc/conf.d/celery WorkingDirectory=/opt/celery logfile=${CELERYD_LOG_FILE} \ --loglevel="${CELERYD_LOG_LEVEL}" $CELERYD_OPTS' [Install] WantedBy=multi-user.target Once you’ve put that file in /etc/systemd/system, you should run systemctl daemon-reload in order0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery 2.2 Documentationfor the task (if any). • Acknowledgement now happens in the pool callback. Can’t do ack in the job target, as it’s not pickleable (can’t share AMQP connection, etc.)). • Added note about .delay hanging the pool. Sender is the celery.concurrency.evlet.TaskPool instance. Provides arguments: • target The target function. • args Positional arguments. • kwargs Keyword arguments. Logging Signals a celery.worker.job.execute_and_trace(task_name, *args, **kwargs) This is a pickleable method used as a target when applying to pools. It’s the same as: >>> WorkerTaskTrace(task_name, *args, **kwargs).execute_safe()0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.2 Documentationfor the task (if any). Acknowledgement now happens in the pool callback. Can’t do ack in the job target, as it’s not pickleable (can’t share AMQP connection, etc.)). Added note about .delay hanging in the pool. Sender is the celery.concurrency.evlet.TaskPool instance. Provides arguments: target The target function. args Positional arguments. kwargs Keyword arguments. Logging Signals after_setup_task_logger celery.worker.job.execute_and_trace(task_name, *args, **kwargs) This is a pickleable method used as a target when applying to pools. It’s the same as: >>> WorkerTaskTrace(task_name, *args, **kwargs).execute_safe()0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.0 Documentationaren’t handled by the core weakref module). class celery.utils.dispatch.saferef.BoundMethodWeakref(target, on_delete=None) ‘Safe’ and reusable weak references to instance methods. BoundMethodWeakref objects applied to the target instance method deletion_methods sequence of callable objects taking single argument, a reference to this object which will be called when either the target object or target function to the target object weak_func weak reference to the target function _all_instances class attribute pointing to all live BoundMethodWeakref objects indexed by the class’s calculate_key(target) method0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.3 Documentationcrashes if autoscale is enabled. growing and shrinking eventlet pools is still not supported. py24 target removed from tox.ini. 2.3.1 release-date: 2011-08-07 08:00 P.M BST Fixes The CELERY_AMQP_TASK_RESULT_EXPIRES for the task (if any). Acknowledgement now happens in the pool callback. Can’t do ack in the job target, as it’s not pickleable (can’t share AMQP connection, etc.)). Added note about .delay hanging in the pool. Sender is the celery.concurrency.evlet.TaskPool instance. Provides arguments: target The target function. args Positional arguments. kwargs Keyword arguments. Logging Signals setup_logging0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.4 Documentationpool. Sender is the celery.concurrency.eventlet.TaskPool instance. Provides arguments: • target The target function. • args Positional arguments. • kwargs Keyword arguments. Logging Signals setup_logging crashes if autoscale is enabled. growing and shrinking eventlet pools is still not supported. • py24 target removed from tox.ini. 9.12 2.3.1 release-date 2011-08-07 08:00 P.M BST 9.12.1 Fixes • The CE for the task (if any). • Acknowledgement now happens in the pool callback. Can’t do ack in the job target, as it’s not pickleable (can’t share AMQP connection, etc.)). • Added note about .delay hanging0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.4 Documentationthe pool. Sender is the celery.concurrency.eventlet.TaskPool instance. Provides arguments: target The target function. args Positional arguments. kwargs Keyword arguments. Logging Signals setup_logging crashes if autoscale is enabled. growing and shrinking eventlet pools is still not supported. py24 target removed from tox.ini. 2.3.1 release-date: 2011-08-07 08:00 P.M BST Fixes The CELERY_AMQP_TASK_RESULT_EXPIRES for the task (if any). Acknowledgement now happens in the pool callback. Can’t do ack in the job target, as it’s not pickleable (can’t share AMQP connection, etc.)). Added note about .delay hanging in0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.5 Documentationconcurrency.eventlet.TaskPool instance. Provides arguments: • target 84 Chapter 2. User Guide Celery Documentation, Release 2.5.5 The target function. • args Positional arguments. • kwargs Keyword crashes if autoscale is enabled. growing and shrinking eventlet pools is still not supported. • py24 target removed from tox.ini. 11.15 2.3.1 release-date 2011-08-07 08:00 P.M BST 11.15.1 Fixes • The for the task (if any). • Acknowledgement now happens in the pool callback. Can’t do ack in the job target, as it’s not pickleable (can’t share AMQP connection, etc.)). • Added note about .delay hanging0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.0 Documentationaren’t handled by the core weakref module). class celery.utils.dispatch.saferef.BoundMethodWeakref(target, on_delete=None) ‘Safe’ and reusable weak references to instance methods. BoundMethodWeakref objects applied to the target instance method deletion_methods sequence of callable objects taking single argument, a reference to this object which will be called when either the target object or target function to the target object weak_func weak reference to the target function _all_instances class attribute pointing to all live BoundMethodWeakref objects indexed by the class’s calculate_key(target) method0 码力 | 284 页 | 332.71 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













