basic crontab functionality working with faktory

This commit is contained in:
Brendan McDevitt 2022-04-18 15:44:41 -05:00
parent 449301ff58
commit 39d4b385e5
2 changed files with 21 additions and 2 deletions

14
crontab.yaml Normal file
View 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

View file

@ -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