モジュラーワークフローツールの実装:Probe
name: Send queue congestion experiment
jobs:
- name: Normal sender
id: normal-sender
repeat:
count: 60
interval: 10
steps:
- use: smtp
with:
addr: localhost:5871
from:
[email protected]
to:
[email protected]
my-hostname: msa1-local
subject: Experiment A
- name: Throttled sender
id: throtteled-sender
repeat:
count: 60
interval: 10
steps:
- use: smtp
with:
addr: localhost:5872
from:
[email protected]
to:
[email protected]
my-hostname: msa2-local
subject: Experiment B
- name: Export latency as CSV
needs:
- normal-sender
- throtteled-sender
waitif: sh(postqueue -p 2> /dev/null |
grep -c '^[A-F0-9]') != "0"
steps:
- use: mail-latency
with:
spath: /home/vmail
dpath: ./latency.csv
SMTP Actionを使った例
needsで指定するJobを待つ
Waitifで条件を満たすまで待つ
Jobは並行処理される