Celery 2.3 Documentationdef add(x, y): return x + y Handlers execute(self, request, pool, loglevel, logfile, **kw): Parameters • request – A TaskRequest. • pool – The task pool. • loglevel – Current loglevel. • logfile after_return(self, status, retval, task_id, args, kwargs, einfo) Handler called after the task returns. Parameters • status – Current task state. • retval – Task return value/exception. • task_id – Unique id on_failure(self, exc, task_id, args, kwargs, einfo) This is run by the worker when the task fails. Parameters • exc – The exception raised by the task. • task_id – Unique id of the failed task. • args –0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.5 Documentationdef add(x, y): return x + y Handlers execute(self, request, pool, loglevel, logfile, **kw): Parameters • request – A TaskRequest. • pool – The task pool. • loglevel – Current loglevel. • logfile after_return(self, status, retval, task_id, args, kwargs, einfo) Handler called after the task returns. Parameters • status – Current task state. • retval – Task return value/exception. • task_id – Unique id on_failure(self, exc, task_id, args, kwargs, einfo) This is run by the worker when the task fails. Parameters • exc – The exception raised by the task. • task_id – Unique id of the failed task. • args –0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.3 Documentationadd(x, y): return x + y Handlers execute(self, request, pool, loglevel, logfile, **kw): Parameters: request – A TaskRequest. pool – The task pool. loglevel – Current loglevel. logfile – Name of after_return(self, status, retval, task_id, args, kwargs, einfo) Handler called after the task returns. Parameters: status – Current task state. retval – Task return value/exception. task_id – Unique id of the on_failure(self, exc, task_id, args, kwargs, einfo) This is run by the worker when the task fails. Parameters: exc – The exception raised by the task. task_id – Unique id of the failed task. args – Original0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.2 Documentationdeclare(exchange_name, type, passive, durable, auto_delete, internal) Declares an exchange by name. Parameters • passive – Passive means the exchange won’t be created, but you can use this to check if the log=None, control=None, set_as_current=True, accept_magic_kwargs=False) Celery Application. Parameters • main – Name of the main module if running as __main__. • loader – The loader class, or the connect_timeout=None, result_cls=None, expires=None, queues=None, **options) Send task by name. Parameters • name – Name of task to execute (e.g. “tasks.add”). • result_cls – Specify custom result class0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.1 Documentationdeclare(exchange_name, type, passive, durable, auto_delete, internal) Declares an exchange by name. Parameters • passive – Passive means the exchange won’t be created, but you can use this to check if the a datetime. classmethod AsyncResult(task_id) Get AsyncResult instance for this kind of task. Parameters task_id – Task id to get result for. exception MaxRetriesExceededError The tasks max restart after_return(status, retval, task_id, args, kwargs, einfo=None) Handler called after the task returns. Parameters • status – Current task state. • retval – Task return value/exception. • task_id – Unique id0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.4 Documentationdef add(x, y): return x + y Handlers execute(self, request, pool, loglevel, logfile, **kw): Parameters • request – A TaskRequest. • pool – The task pool. • loglevel – Current loglevel. • logfile after_return(self, status, retval, task_id, args, kwargs, einfo) Handler called after the task returns. Parameters • status – Current task state. • retval – Task return value/exception. • task_id – Unique id on_failure(self, exc, task_id, args, kwargs, einfo) This is run by the worker when the task fails. Parameters • exc – The exception raised by the task. • task_id – Unique id of the failed task. • args –0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.4 Documentationadd(x, y): return x + y Handlers execute(self, request, pool, loglevel, logfile, **kw): Parameters: request – A TaskRequest. pool – The task pool. loglevel – Current loglevel. logfile – Name of after_return(self, status, retval, task_id, args, kwargs, einfo) Handler called after the task returns. Parameters: status – Current task state. retval – Task return value/exception. task_id – Unique id of the on_failure(self, exc, task_id, args, kwargs, einfo) This is run by the worker when the task fails. Parameters: exc – The exception raised by the task. task_id – Unique id of the failed task. args – Original0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.2 Documentationdeclare(exchange_name, type, passive, durable, auto_delete, internal) Declares an exchange by name. Parameters: passive – Passive means the exchange won’t be created, but you can use this to check if the exchange log=None, control=None, set_as_current=True, accept_magic_kwargs=False) Celery Application. Parameters: main – Name of the main module if running as __main__. loader – The loader class, or the name connect_timeout=None, result_cls=None, expires=None, queues=None, **options) Send task by name. Parameters: name – Name of task to execute (e.g. “tasks.add”). result_cls – Specify custom result class.0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.5 Documentationadd(x, y): return x + y Handlers execute(self, request, pool, loglevel, logfile, **kw): Parameters: request – A TaskRequest. pool – The task pool. loglevel – Current loglevel. logfile – Name of after_return(self, status, retval, task_id, args, kwargs, einfo) Handler called after the task returns. Parameters: status – Current task state. retval – Task return value/exception. task_id – Unique id of the on_failure(self, exc, task_id, args, kwargs, einfo) This is run by the worker when the task fails. Parameters: exc – The exception raised by the task. task_id – Unique id of the failed task. args – Original0 码力 | 647 页 | 1011.88 KB | 1 年前3
Celery 2.1 Documentationdeclare(exchange_name, type, passive, durable, auto_delete, internal) Declares an exchange by name. Parameters: passive – Passive means the exchange won’t be created, but you can use this to check if the exchange a datetime. classmethod AsyncResult(task_id) Get AsyncResult instance for this kind of task. Parameters: task_id – Task id to get result for. exception MaxRetriesExceededError The tasks max restart after_return(status, retval, task_id, args, kwargs, einfo=None) Handler called after the task returns. Parameters: status – Current task state. retval – Task return value/exception. task_id – Unique id of the0 码力 | 463 页 | 861.69 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













