Celery 3.1 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients other than the URL location of the broker instance you want to use: >>> BROKER_URL = 'amqp://guest:guest@localhost:5672//' For a description of broker URLs and a full list of the various broker configuration Let’s create the file tasks.py: from celery 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 name0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery v4.0.1 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients configuration, other than the URL location of the broker instance you want to use: broker_url = 'amqp://guest:guest@localhost:5672//' For a description of broker URLs and a full list of the various broker configuration Let’s create the file tasks.py: from celery 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 name0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients configuration, other than the URL location of the broker instance you want to use: broker_url = 'amqp://guest:guest@localhost:5672//' For a description of broker URLs and a full list of the various broker configuration Let’s create the file tasks.py: from celery 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 name0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery 4.0 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients configuration, other than the URL location of the broker instance you want to use: broker_url = 'amqp://guest:guest@localhost:5672//' For a description of broker URLs and a full list of the various broker configuration Let’s create the file tasks.py: from celery 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 name0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients Let’s create the file tasks.py: from celery 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 (latentcall) ---- **** ----- --- * *** * -- [Configuration] -- * - **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency:0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery v4.2.1 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients Let’s create the file tasks.py: from celery 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 (latentcall) ---- **** ----- --- * *** * -- [Configuration] -- * - **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency:0 码力 | 1121 页 | 1.38 MB | 1 年前3
Celery v4.2.2 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients Let’s create the file tasks.py: from celery 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 (latentcall) ---- **** ----- --- * *** * -- [Configuration] -- * - **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency:0 码力 | 1121 页 | 1.38 MB | 1 年前3
Celery v4.2.0 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients Let’s create the file tasks.py: from celery 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 (latentcall) ---- **** ----- --- * *** * -- [Configuration] -- * - **** --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency:0 码力 | 1110 页 | 1.36 MB | 1 年前3
Celery v4.4.5 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients Let’s create the file tasks.py: from celery 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 (latentcall) --- ***** ----- -- ******* ---- [Configuration] - *** --- * --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency:0 码力 | 1215 页 | 1.44 MB | 1 年前3
Celery 4.4.0 Documentationsimplest applications you can make: from celery import Celery app = Celery('hello', broker='amqp://guest@localhost//') @app.task def hello(): return 'hello world' Highly Available Workers and clients Let’s create the file tasks.py: from celery 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 (latentcall) --- ***** ----- -- ******* ---- [Configuration] - *** --- * --- . broker: amqp://guest@localhost:5672// - ** ---------- . app: __main__:0x1012d8590 - ** ---------- . concurrency:0 码力 | 1185 页 | 1.42 MB | 1 年前3
共 341 条
- 1
- 2
- 3
- 4
- 5
- 6
- 35













