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 name of0 码力 | 607 页 | 2.27 MB | 1 年前3
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 3.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 20 Chapter 2. Contents Celery Documentation0 码力 | 703 页 | 2.60 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 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 name of0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery v4.0.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='amqp://guest@localhost//') @app.task def add(x, y): return x + y 20 Chapter 2. Contents Celery Documentation0 码力 | 701 页 | 2.59 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 name of0 码力 | 707 页 | 2.63 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 name of0 码力 | 707 页 | 2.63 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
共 275 条
- 1
- 2
- 3
- 4
- 5
- 6
- 28













