Celery v5.0.1 Documentationarguments and execution options of a single task invocation in such a way that it can be passed to functions or even serialized and sent across the wire. You can create a signature for the add task using host names work on the internet: every worker maintains a mapping of task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local failure or some other reason – the message will be redelivered to another worker. Ideally task functions should be idempotent: meaning the function won’t cause unintended effects even if called multiple0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 Documentationarguments and execution options of a single task invocation in such a way that it can be passed to functions or even serialized and sent across the wire. You can create a signature for the add task using host names work on the internet: every worker maintains a mapping of task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local failure or some other reason – the message will be redelivered to another worker. Ideally task functions should be idempotent: meaning the function won’t cause unintended effects even if called multiple0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.0 Documentationarguments and execution options of a single task invocation in such a way that it can be passed to functions or even serialized and sent across the wire. You can create a signature for the add task using host names work on the internet: every worker maintains a mapping of task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local failure or some other reason – the message will be redelivered to another worker. Ideally task functions should be idempotent: meaning the function won’t cause unintended effects even if called multiple0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery v5.0.5 Documentationarguments and execution options of a single task invocation in such a way that it can be passed to functions or even serialized and sent across the wire. You can create a signature for the add task using host names work on the internet: every worker maintains a mapping of task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local failure or some other reason – the message will be redelivered to another worker. Ideally task functions should be idempotent: meaning the function won’t cause unintended effects even if called multiple0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery 3.0 Documentationarguments and execution options of a single task invocation in a way such that it can be passed to functions or even serialized and sent across the wire. You can create a signature for the add task using host names work on the internet: every worker maintains a mapping of task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local failure or some other reason – the message will be redelivered to another worker. Ideally task functions should be idempotent: meaning the function won’t cause unintended effects even if called multiple0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v4.0.0 Documentationarguments and execution options of a single task invocation in a way such that it can be passed to functions or even serialized and sent across the wire. You can create a signature for the add task using host names work on the internet: every worker maintains a mapping of task names to their actual functions, called the task registry. Whenever you define a task, that task will also be added to the local failure or some other reason – the message will be redelivered to another worker. Ideally task functions should be idempotent: meaning the function won’t cause unintended effects even if called multiple0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery 2.5 Documentationnet/notes/reloading.html http://www.indelible.org/ink/python-reloading/ http://docs.python.org/library/functions.html#reload Writing your own remote control commands Remote control commands are registered in digits. First we need two tasks, add() and tsum() (sum() [http://docs.python.org/dev/library/functions.html#sum] is already a standard function): from celery.task import task @task def add(x, y): import djcelery djcelery.setup_loader() Defining and executing tasks Tasks are defined by wrapping functions in the @task decorator. It is a common practice to put these in their own module named tasks.py0 码力 | 647 页 | 1011.88 KB | 1 年前3
Celery 2.5 Documentationnet/notes/reloading.html • http://www.indelible.org/ink/python-reloading/ • http://docs.python.org/library/functions.html#reload Writing your own remote control commands Remote control commands are registered in djcelery djcelery.setup_loader() 4.1.2 Defining and executing tasks Tasks are defined by wrapping functions in the @task decorator. It is a common practice to put these in their own module named tasks.py I will continue to do so here so maybe you can adopt this practice. In this module we have two functions: • send_increment_clicks This function sends a simple message to the broker. The message body0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.3 DocumentationI will continue to do so here so maybe you can adopt this practice. In this module we have two functions: • send_increment_clicks This function sends a simple message to the broker. The message body another way to be language independent, and that is to use REST tasks, instead of your tasks being functions, they’re URLs. With this information you can even create simple web servers that enable preloading deprecation timeline. • [Security: Low severity] Removed celery.task.RemoteExecuteTask and accompanying functions: dmap, dmap_async, and execute_remote. Executing arbitrary code using pickle is a potential security0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 DocumentationI will continue to do so here so maybe you can adopt this practice. In this module we have two functions: • send_increment_clicks This function sends a simple message to the broker. The message body another way to be language independent, and that is to use REST tasks, instead of your tasks being functions, they’re URLs. With this information you can even create simple web servers that enable preloading Release 2.2.10 • [Security: Low severity] Removed celery.task.RemoteExecuteTask and accompanying functions: dmap, dmap_async, and execute_remote. Executing arbitrary code using pickle is a potential security0 码力 | 314 页 | 1.26 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













