Celery v5.0.1 Documentationtopic of task granularity [AOC1]. Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*', {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery 3.0 Documentationtask granularity [AOC1]. [AOC1] Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*': {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v4.0.0 Documentationtask granularity [AOC1]. [AOC1] Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*': {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery v5.0.2 Documentationtopic of task granularity [AOC1]. Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*', {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.0 Documentationtopic of task granularity [AOC1]. Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*', {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery v5.0.5 Documentationtopic of task granularity [AOC1]. Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*', {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery 3.0 Documentationadd_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 100 Chapter 2. Contents 'feeds'}), ('web.tasks.*': {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note: The task_routes setting can either be a dictionary, or a list of router objects, so Exchange('default'), routing_key='default'), Queue('videos', Exchange('media'), routing_key='media.video'), Queue('images', Exchange('media'), routing_key='media.image'), ) app.conf.task_default_queue = 'default' app0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.0.1 Documentationtask granularity [AOC1]. [AOC1] Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*': {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationtask granularity [AOC1]. [AOC1] Breshears, Clay. Section 2.2.1, “The Art of Concurrency”. O’Reilly Media, Inc. May 15, 2009. ISBN-13 978-0-596-52153-0. Data locality The worker processing the task should add_consumer( ... queue='baz', ... exchange='ex', ... exchange_type='topic', ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, 'feeds'}), ('web.tasks.*': {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note The task_routes setting can either be a dictionary, or a list of router objects, so0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationexchange_type='topic', 100 Chapter 2. Contents Celery Documentation, Release 4.1.0 ... routing_key='media.*', ... options={ ... 'queue_durable': False, ... 'exchange_durable': False, ... }, ... reply=True 'feeds'}), ('web.tasks.*', {'queue': 'web'}), (re.compile(r'(video|image)\.tasks\..*'), {'queue': 'media'}), ],) Note: The task_routes setting can either be a dictionary, or a list of router objects, so Exchange('default'), routing_key='default'), Queue('videos', Exchange('media'), routing_key='media.video'), Queue('images', Exchange('media'), routing_key='media.image'), ) app.conf.task_default_queue = 'default' app0 码力 | 714 页 | 2.63 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













