Celery 3.0 DocumentationPyPy ❨5.4, 5.5❩ This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module, this only needed so names absolute_import, unicode_literals from . import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v4.0.0 DocumentationPyPy ❨5.4, 5.5❩ This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='amqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module, this only needed so names absolute_import, unicode_literals from . import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery v4.1.0 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module. This is only needed so absolute_import, unicode_literals from .celery import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) 26 Chapter 2. Contents0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery v4.0.1 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module, this only needed so names import absolute_import, unicode_literals from . import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the worker0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery 4.0 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module, this only needed so names absolute_import, unicode_literals from .celery import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) 26 Chapter 2. Contents0 码力 | 707 页 | 2.63 MB | 1 年前3
Celery v4.0.2 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module, this only needed so names absolute_import, unicode_literals from .celery import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the worker0 码力 | 707 页 | 2.63 MB | 1 年前3
Celery 3.0 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y 20 Chapter 2. Contents Celery Documentation, Release 4.0.0 The first argument to Celery import absolute_import, unicode_literals from . import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the worker0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.0.0 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running celery import Celery app = Celery('tasks', broker='amqp://guest@localhost//') @app.task def add(x, y): return x + y 20 Chapter 2. Contents Celery Documentation, Release 4.0.0 The first argument to Celery import absolute_import, unicode_literals from . import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the worker0 码力 | 701 页 | 2.59 MB | 1 年前3
Celery v4.2.1 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module. This is only needed so absolute_import, unicode_literals from .celery import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the worker0 码力 | 746 页 | 2.73 MB | 1 年前3
Celery v4.2.2 DocumentationPyPy 5.4, 5.5 This is the last version to support Python 2.7, and from the next version (Celery 5.x) Python 3.5 or newer is required. If you’re running an older version of Python, you need to be running import Celery app = Celery('tasks', broker='pyamqp://guest@localhost//') @app.task def add(x, y): return x + y The first argument to Celery is the name of the current module. This is only needed so absolute_import, unicode_literals from .celery import app @app.task def add(x, y): return x + y @app.task def mul(x, y): return x * y @app.task def xsum(numbers): return sum(numbers) Starting the worker0 码力 | 744 页 | 2.71 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













