basic crontab functionality working with faktory
This commit is contained in:
parent
449301ff58
commit
39d4b385e5
2 changed files with 21 additions and 2 deletions
14
crontab.yaml
Normal file
14
crontab.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
faktory: tcp://faktory:7419
|
||||||
|
jobs:
|
||||||
|
- job: test
|
||||||
|
schedule: "@every 30s"
|
||||||
|
args:
|
||||||
|
- test
|
||||||
|
- job: test
|
||||||
|
schedule: 5 * * * *
|
||||||
|
args:
|
||||||
|
- 1
|
||||||
|
- 2
|
||||||
|
retries: 1
|
||||||
|
queue: default
|
||||||
|
priority: 5
|
|
@ -24,5 +24,10 @@ services:
|
||||||
- "7420:7420"
|
- "7420:7420"
|
||||||
volumes:
|
volumes:
|
||||||
- ./tmp/faktory:/var/lib/faktory
|
- ./tmp/faktory:/var/lib/faktory
|
||||||
|
faktory-cron:
|
||||||
|
image: cdrx/faktory-cron
|
||||||
|
command: "./faktory-cron -config /crontab.yaml"
|
||||||
|
environment:
|
||||||
|
FAKTORY_URL: 'tcp://faktory:7419'
|
||||||
|
volumes:
|
||||||
|
- ./crontab.yaml:/crontab.yaml
|
Loading…
Add table
Reference in a new issue