Celery 3.0 Documentation
# ln -s /run/shm /dev/shm Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file/directory that’s writable and readable by the prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed information about workers so you need to use the same command-line arguments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log0 码力 | 2110 页 | 2.23 MB | 1 年前3Celery v4.0.0 Documentation
# ln -s /run/shm /dev/shm Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file/directory that’s writable and readable by the prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed information about workers so you need to use the same command-line arguments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log0 码力 | 2106 页 | 2.23 MB | 1 年前3Celery 2.3 Documentation
encapsulates a function and its execution options. Given a function create_user‘, that takes two arguments: username and password, you can create a task like this: from django.contrib.auth import User password): User.objects.create(username=username, password=password) Task options are added as arguments to task: @task(serializer="json") def create_user(username, password): User.objects.create(username=username taskset The unique id of the taskset this task is a member of (if any). args Positional arguments. kwargs Keyword arguments. retries How many times the current task has been retried. An integer starting at0 码力 | 334 页 | 1.25 MB | 1 年前3Celery v4.1.0 Documentation
ln -s /run/shm /dev/shm • Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file or directory that’s writable and readable by prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed need to use the same command-line argu- ments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory0 码力 | 714 页 | 2.63 MB | 1 年前3Celery v4.0.1 Documentation
ln -s /run/shm /dev/shm • Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file/directory that’s writable and readable by the prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed need to use the same command-line argu- ments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory0 码力 | 705 页 | 2.63 MB | 1 年前3Celery 4.0 Documentation
ln -s /run/shm /dev/shm • Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file/directory that’s writable and readable by the prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed need to use the same command-line argu- ments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory0 码力 | 707 页 | 2.63 MB | 1 年前3Celery v4.0.2 Documentation
ln -s /run/shm /dev/shm • Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file/directory that’s writable and readable by the prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed need to use the same command-line argu- ments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory0 码力 | 707 页 | 2.63 MB | 1 年前3Celery v4.1.0 Documentation
# ln -s /run/shm /dev/shm Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file or directory that’s writable and readable by prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed information about workers so you need to use the same command-line arguments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log0 码力 | 1057 页 | 1.35 MB | 1 年前3Celery 2.1 Documentation
Chapter 2. User Guide Celery Documentation, Release 2.1.4 2.2 Tasks • Basics • Default keyword arguments • Logging • Retrying a task if something fails – Using a custom retry delay • Task options – encapsulates a function and its execution options. Given a function create_user, that takes two arguments: username and password, you can create a task like this: from celery.task import Task from django objects.create(username=username, password=password) 2.2.2 Default keyword arguments Celery supports a set of default arguments that can be forwarded to any task. Tasks can choose not to take these, or0 码力 | 285 页 | 1.19 MB | 1 年前3Celery v5.0.1 Documentation
# ln -s /run/shm /dev/shm Others: If you provide any of the --pidfile, --logfile or --statedb arguments, then you must make sure that they point to a file or directory that’s writable and readable by prioritization, all described in the Routing Guide. You can get a complete list of command-line arguments by passing in the --help flag: $ celery worker --help These options are described in more detailed information about workers so you need to use the same command-line arguments when restarting. Only the same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log0 码力 | 2313 页 | 2.13 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6