Celery 2.5 Documentation
Getting Started Celery Documentation, Release 2.5.5 Right now we have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured Use Task.update_state to update a task’s state: @task def upload_files(filenames): for i, file in enumerate(filenames): upload_files.update_state(state="PROGRESS", meta={"current": i, "total": len(filenames)}) request.META.get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously. tasks.spam_filter.delay(comment_id=comment0 码力 | 400 页 | 1.40 MB | 1 年前3Celery 3.1 Documentation
Steps Celery is… Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list [http://groups configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you would route a misbehaving task to a dedicated queue: celeryconfig.py: CELERY_ROUTES pidfile and logfile arguments must be used when stopping. By default it will create pid and log files in the current directory, to protect against multiple workers launching on top of each other you are0 码力 | 887 页 | 1.22 MB | 1 年前3Celery 3.1 Documentation
Celery is. . . • Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list and an configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you would route a misbehaving task to a dedicated queue: celeryconfig.py: CELERY_ROUTES pidfile and logfile arguments must be used when stopping. By default it will create pid and log files in the current directory, to protect against multiple workers launching on top of each other you are0 码力 | 607 页 | 2.27 MB | 1 年前3Celery 2.5 Documentation
task until a worker server has consumed and executed it. Right now we have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured Task.update_state to update a task’s state: @task def upload_files(filenames): for i, file in enumerate(filenames): upload_files.update_state(state="PROGRESS", meta={"current": i get("REMOTE_ADDR") if request.method == "post": form = CommentForm(request.POST, request.FILES) if form.is_valid(): comment = form.save() # Check spam asynchronously0 码力 | 647 页 | 1011.88 KB | 1 年前3Celery v4.0.1 Documentation
Steps Celery is… Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list [http://groups configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory, to protect against multiple workers launching on top of each other you’re0 码力 | 1040 页 | 1.37 MB | 1 年前3Celery v4.0.2 Documentation
Steps Celery is… Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list [http://groups configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory, to protect against multiple workers launching on top of each other you’re0 码力 | 1042 页 | 1.37 MB | 1 年前3Celery v4.1.0 Documentation
Steps Celery is… Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list [https://groups configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory, to protect against multiple workers launching on top of each other you’re0 码力 | 1057 页 | 1.35 MB | 1 年前3Celery 4.0 Documentation
Steps Celery is… Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list [http://groups configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory, to protect against multiple workers launching on top of each other you’re0 码力 | 1042 页 | 1.37 MB | 1 年前3Celery 3.0 Documentation
Celery is. . . • Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list and an configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory, to protect against multiple workers launching on top of each other you’re0 码力 | 703 页 | 2.60 MB | 1 年前3Celery v4.1.0 Documentation
Celery is. . . • Simple Celery is easy to use and maintain, and it doesn’t need configuration files. It has an active, friendly community you can talk to for support, including a mailing-list and an configuration options, see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: 2.2. Getting same pidfile and logfile arguments must be used when stopping. By default it’ll create pid and log files in the current directory, to protect against multiple workers launching on top of each other you’re0 码力 | 714 页 | 2.63 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6