Celery v5.0.2 Documentationcustom task states set a custom task name track when a task starts retry a task when it fails get the id of the current task get a list of people and companies using Celery write my own remote control command 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include the @ sign at the end and encode cret_key, ) The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, in that case the broker URL may only be sqs://. If you are using IAM roles0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.5 Documentationcustom task states set a custom task name track when a task starts retry a task when it fails get the id of the current task get a list of people and companies using Celery write my own remote control command 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include the @ sign at the end and encode cret_key, ) The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, in that case the broker URL may only be sqs://. If you are using IAM roles0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery v5.0.1 Documentationcustom task states set a custom task name track when a task starts retry a task when it fails get the id of the current task get a list of people and companies using Celery write my own remote control command 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include the @ sign at the end and encode cret_key, ) The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, in that case the broker URL may only be sqs://. If you are using IAM roles0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.0 Documentationcustom task states set a custom task name track when a task starts retry a task when it fails get the id of the current task get a list of people and companies using Celery write my own remote control command 'sqs://ABCDEFGHIJKLMNOPQRST:ZYXK7NiynGlTogH8Nj+P9nlE73sq3@' where the URL format is: sqs://aws_access_key_id:aws_secret_access_key@ Please note that you must remember to include the @ sign at the end and encode cret_key, ) The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY, in that case the broker URL may only be sqs://. If you are using IAM roles0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery v4.0.0 Documentationcustom task states set a custom task name track when a task starts retry a task when it fails get the id of the current task know what queue a task was delivered to see a list of running workers purge all sqs://aws_access_key_id:aws_secret_access_key@ you must remember to include the “@” at the end. The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY state when a task is sent, and any task with no history is assumed to be pending (you know the task id after all). 1. Make sure that the task doesn’t have ignore_result enabled. Enabling this option will0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery 3.0 Documentationcustom task states set a custom task name track when a task starts retry a task when it fails get the id of the current task know what queue a task was delivered to see a list of running workers purge all sqs://aws_access_key_id:aws_secret_access_key@ you must remember to include the “@” at the end. The login credentials can also be set using the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY state when a task is sent, and any task with no history is assumed to be pending (you know the task id after all). 1. Make sure that the task doesn’t have ignore_result enabled. Enabling this option will0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery 2.3 Documentationinvestigated after the fact. UUID Every task has an UUID (Universally Unique Identifier), which is the task id used to query task status and return value. Retries Tasks can be retried if they fail, with configurable currently executing task, and must always contain the following attributes: id The unique id of the executing task. taskset The unique id of the taskset this task is a member of (if any). args Positional arguments Usage from celery.task import task @task def add(x, y): print("Executing task id %r, args: %r kwargs: %r" % ( add.request.id, add.request.args, add.request.kwargs)) 16 Chapter 2. User Guide Celery Documentation0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.1 Documentationinvestigated after the fact. UUID Every task has an UUID (Universally Unique Identifier), which is the task id used to query task status and return value. Retries Tasks can be retried if they fail, with configurable want. The worker will do the right thing. The current default keyword arguments are: task_id The unique id of the executing task. task_name Name of the currently executing task. task_retries How many task_retries keyword argument passed on to the task. In addition, it also uses the task_id keyword argument to use the same task id, and delivery_info to route the retried task to the same destination. Using a0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.5 Documentationinvestigated after the fact. UUID Every task has an UUID (Universally Unique Identifier), which is the task id used to query task status and return value. Retries Tasks can be retried if they fail, with configurable currently executing task, and must always contain the following attributes: id The unique id of the executing task. taskset The unique id of the taskset this task is a member of (if any). args Positional arguments Usage from celery.task import task @task def add(x, y): print("Executing task id %r, args: %r kwargs: %r" % ( add.request.id, add.request.args, add.request.kwargs)) 2.2.3 Logging You can use the workers0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.3 Documentationinvestigated after the fact. UUID Every task has an UUID (Universally Unique Identifier), which is the task id used to query task status and return value. Retries Tasks can be retried if they fail, with configurable currently executing task, and must always contain the following attributes: id: The unique id of the executing task. taskset: The unique id of the taskset this task is a member of (if any). args: Positional celery.task import task @task def add(x, y): print("Executing task id %r, args: %r kwargs: %r" % ( add.request.id, add.request.args, add.request.kwargs)) Logging You can use the workers0 码力 | 530 页 | 900.64 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













