forked from ansible/dispatcherd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdispatcher.yml
33 lines (33 loc) · 847 Bytes
/
dispatcher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Demo config
---
version: 2
service:
pool_kwargs:
min_workers: 2 # subprocesses
max_workers: 12
scaledown_wait: 15 # seconds
main_kwargs:
node_id: demo-server-a
brokers:
pg_notify:
config:
conninfo: dbname=dispatch_db user=dispatch password=dispatching host=localhost port=55777
sync_connection_factory: dispatcher.brokers.pg_notify.connection_saver
# List of channels to listen on
channels:
- test_channel
- test_channel2
- test_channel3
default_publish_channel: test_channel
producers:
ScheduledProducer:
task_schedule:
'lambda: __import__("time").sleep(1)':
schedule: 3
'lambda: __import__("time").sleep(2)':
schedule: 3
OnStartProducer:
task_list:
'lambda: print("This task runs on startup")': {}
publish:
default_broker: pg_notify