Change 2nd celery worker to use gevent backend and example with sleeps
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
- shell: celery multi kill 2
|
||||
chdir={{ celery_dir }}
|
||||
tags: [stop]
|
||||
- shell: celery multi start 2 -A solar.orchestration.runner -Q:1 scheduler,system_log -Q:2 celery,{{ hostname.stdout }}
|
||||
- shell: celery multi start 2 -A solar.orchestration.runner -P:2 gevent -c:2 1000 -Q:1 scheduler,system_log -Q:2 celery,{{ hostname.stdout }}
|
||||
chdir={{ celery_dir }}
|
||||
tags: [master]
|
||||
- shell: celery multi start 1 -A solar.orchestration.runner -Q:1 {{ hostname.stdout }}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
name: for_stop
|
||||
tasks:
|
||||
- uid: sleep_some_time
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [20]
|
||||
before: [sleep_again]
|
||||
- uid: sleep_again
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [20]
|
||||
31
solar/solar/test/orch_fixtures/sleeping_beauty.yaml
Normal file
31
solar/solar/test/orch_fixtures/sleeping_beauty.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: sleeping_beauty
|
||||
tasks:
|
||||
- uid: fairy1
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [10]
|
||||
before: [princess]
|
||||
- uid: fairy2
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [10]
|
||||
before: [princess]
|
||||
- uid: fairy3
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [10]
|
||||
before: [princess]
|
||||
- uid: fairy4
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [10]
|
||||
before: [princess]
|
||||
- uid: fairy5
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [10]
|
||||
before: [princess]
|
||||
- uid: princess
|
||||
parameters:
|
||||
type: sleep
|
||||
args: [10]
|
||||
Reference in New Issue
Block a user