Celery v4.2.1 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import instance: >>> res.failed() True (continues on next page) 30 Chapter 2. Contents Celery Documentation, Release 4.2.1 (continued from previous page) >>> res.successful() False So how does it know if >>> @app.task ... def add(x, y): (continues on next page) 38 Chapter 2. Contents Celery Documentation, Release 4.2.1 (continued from previous page) ... return x + y >>> add.name tasks.add See also:0 码力 | 746 页 | 2.73 MB | 1 年前3
Celery v4.2.0 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import instance: >>> res.failed() True (continues on next page) 30 Chapter 2. Contents Celery Documentation, Release 4.2.0 (continued from previous page) >>> res.successful() False So how does it know if >>> @app.task ... def add(x, y): (continues on next page) 38 Chapter 2. Contents Celery Documentation, Release 4.2.0 (continued from previous page) ... return x + y >>> add.name tasks.add See also:0 码力 | 738 页 | 2.68 MB | 1 年前3
Celery v4.2.2 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import instance: >>> res.failed() True (continues on next page) 30 Chapter 2. Contents Celery Documentation, Release 4.2.2 (continued from previous page) >>> res.successful() False So how does it know if >>> @app.task ... def add(x, y): (continues on next page) 38 Chapter 2. Contents Celery Documentation, Release 4.2.2 (continued from previous page) ... return x + y >>> add.name tasks.add See also:0 码力 | 744 页 | 2.71 MB | 1 年前3
Celery v4.1.0 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py 2.2. Getting Started 25 Celery Documentation, Release Bad: @app.task def update_page_info(url): page = fetch_page.delay(url).get() info = parse_page.delay(url, page).get() store_page_info.delay(url, info) @app.task def fetch_page(url): return myhttplib.get(url) get(url) @app.task def parse_page(url, page): return myparser.parse_document(page) @app.task def store_page_info(url, info): return PageInfo.objects.create(url, info) Good: 64 Chapter 2. Contents0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery v4.1.0 Documentation(Cipater) API Reference Internals History Glossary Indices and tables Index Module Index Search Page This document describes the current stable version of Celery (4.1). For development docs, go here Control Timezone Optimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import @app.task def update_page_info(url): page = fetch_page.delay(url).get() info = parse_page.delay(url, page).get() store_page_info.delay(url, info) @app.task def fetch_page(url): return myhttplib0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery v4.0.1 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import Bad: @app.task def update_page_info(url): page = fetch_page.delay(url).get() info = parse_page.delay(url, page).get() store_page_info.delay(url, info) @app.task def fetch_page(url): return myhttplib.get(url) get(url) @app.task def parse_page(url, page): return myparser.parse_document(page) @app.task def store_page_info(url, info): return PageInfo.objects.create(url, info) Good: 64 Chapter 2. Contents0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery 4.0 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py 2.2. Getting Started 25 Celery Documentation, Release Bad: @app.task def update_page_info(url): page = fetch_page.delay(url).get() info = parse_page.delay(url, page).get() store_page_info.delay(url, info) @app.task def fetch_page(url): return myhttplib.get(url) get(url) @app.task def parse_page(url, page): return myparser.parse_document(page) @app.task def store_page_info(url, info): return PageInfo.objects.create(url, info) Good: 64 Chapter 2. Contents0 码力 | 707 页 | 2.63 MB | 1 年前3
Celery v4.0.2 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import Bad: @app.task def update_page_info(url): page = fetch_page.delay(url).get() info = parse_page.delay(url, page).get() store_page_info.delay(url, info) @app.task def fetch_page(url): return myhttplib.get(url) get(url) @app.task def parse_page(url, page): return myparser.parse_document(page) @app.task def store_page_info(url, info): return PageInfo.objects.create(url, info) Good: 64 Chapter 2. Contents0 码力 | 707 页 | 2.63 MB | 1 年前3
Celery 3.1 DocumentationCelery 2.5 API Reference Internals History Glossary Indices and tables Index Module Index Search Page This document describes the current stable version of Celery (3.1). For development docs, go here Control Timezone Optimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import @app.task def update_page_info(url): page = fetch_page.delay(url).get() info = parse_page.delay(url, page).get() store_page_info.delay(url, info) @app.task def fetch_page(url): return myhttplib0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery v4.3.0 DocumentationTimezone • Optimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import >>> @app.task ... def add(x, y): (continues on next page) 40 Chapter 3. Contents Celery Documentation, Release 4.3.0 (continued from previous page) ... return x + y >>> add.name tasks.add See also: >>> app.Task(continues on next page) 46 Chapter 3. Contents Celery Documentation, Release 4.3.0 (continued from previous page) >>> @app.task ... def add(x, y): ... return x + y 0 码力 | 790 页 | 2.84 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













