Celery 2.5 Documentation
the task was called with. kwargs Keyword arguments the task was called with. traceback Stack trace object. einfo The celery.datastructures.ExceptionInfo instance. Worker Signals celeryd_init This celery.task import task @task def add(x, y): result = x + y rdb.set_trace() # <- set breakpoint return result set_trace() sets a breakpoint at the current location and creates a socket you can Contributed by Andrew McFague task.retry() now re-raises the original exception keeping the original stack trace. Suggested by ojii. The –uid argument to daemons now uses initgroups() to set groups to all the0 码力 | 647 页 | 1011.88 KB | 1 年前3Celery 3.1 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l info Evolving the API Celery the task was called with. kwargs Keyword arguments the task was called with. traceback Stack trace object. einfo The celery.datastructures.ExceptionInfo instance. task_revoked Dispatched when a app.tasks.items(): strategies[name] = task.start_strategy(app, consumer) task.__trace__ = celery.app.trace.build_tracer( name, task, loader, hostname ) Your consumer bootstep must require0 码力 | 887 页 | 1.22 MB | 1 年前3Celery 3.1 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l info Evolving the API Celery the task was called with. • kwargs Keyword arguments the task was called with. • traceback Stack trace object. • einfo The celery.datastructures.ExceptionInfo instance. 2.3. User Guide 145 Celery Documentation task in app.tasks.items(): strategies[name] = task.start_strategy(app, consumer) task.__trace__ = celery.app.trace.build_tracer( name, task, loader, hostname ) Your consumer bootstep must require the Tasks0 码力 | 607 页 | 2.27 MB | 1 年前3Celery v5.0.1 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l INFO Evolving the API Celery is only present for reference. For optimization, this has been unrolled into celery.app.trace.build_tracer.trace_task which calls run directly on the custom task class if no __call__ method is defined emitting logs, you should check that the logger is propagating properly. In this example “celery.app.trace” is enabled so that “succeeded in” logs are emitted: import celery import logging @celery.signals0 码力 | 2313 页 | 2.13 MB | 1 年前3Celery v5.0.2 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l INFO Evolving the API Celery is only present for reference. For optimization, this has been unrolled into celery.app.trace.build_tracer.trace_task which calls run directly on the custom task class if no __call__ method is defined emitting logs, you should check that the logger is propagating properly. In this example “celery.app.trace” is enabled so that “succeeded in” logs are emitted: import celery import logging @celery.signals0 码力 | 2313 页 | 2.14 MB | 1 年前3Celery v5.0.0 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l info Evolving the API Celery is only present for reference. For optimization, this has been unrolled into celery.app.trace.build_tracer.trace_task which calls run directly on the custom task class if no __call__ method is defined emitting logs, you should check that the logger is propagating properly. In this example “celery.app.trace” is enabled so that “succeeded in” logs are emitted: import celery import logging @celery.signals0 码力 | 2309 页 | 2.13 MB | 1 年前3Celery v5.0.5 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l INFO Evolving the API Celery is only present for reference. For optimization, this has been unrolled into celery.app.trace.build_tracer.trace_task which calls run directly on the custom task class if no __call__ method is defined emitting logs, you should check that the logger is propagating properly. In this example “celery.app.trace” is enabled so that “succeeded in” logs are emitted: import celery import logging @celery.signals0 码力 | 2315 页 | 2.14 MB | 1 年前3Celery 3.0 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l info Evolving the API Celery contrib import rdb @task() def add(x, y): result = x + y rdb.set_trace() # <- set break-point return result set_trace() sets a break-point at the current location and creates a socket you can the task was called with. kwargs Keyword arguments the task was called with. traceback Stack trace object. einfo The billiard.einfo.ExceptionInfo instance. task_revoked Dispatched when a task is0 码力 | 2110 页 | 2.23 MB | 1 年前3Celery v4.0.0 Documentation
app_or_default(app) In development you can set the CELERY_TRACE_APP environment variable to raise an exception if the app chain breaks: $ CELERY_TRACE_APP=1 celery worker -l info Evolving the API Celery contrib import rdb @task() def add(x, y): result = x + y rdb.set_trace() # <- set break-point return result set_trace() sets a break-point at the current location and creates a socket you can the task was called with. kwargs Keyword arguments the task was called with. traceback Stack trace object. einfo The billiard.einfo.ExceptionInfo instance. task_revoked Dispatched when a task is0 码力 | 2106 页 | 2.23 MB | 1 年前3Celery 2.2 Documentation
celery.task import task @task def add(x, y): result = x + y rdb.set_trace() # <- set breakpoint return result set_trace() sets a breakpoint at the current location and creates a socket you can @task def add(x, y): result = x + y rdb.set_trace() # <- set breakpoint return result :func:`~celery.contrib.rdb.set_trace` sets a breakpoint at the current location and creates a handler, and is now disabled on OS X, emitting a warning instead. See issue #152. celery.execute.trace: Properly handle raise(str), which is still allowed in Python 2.4. See issue #175. Using urllib20 码力 | 505 页 | 878.66 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6