|
|
|
|
|
by albertgoeswoof
1371 days ago
|
|
I run cron jobs on fly, using a process. Eg with a rails app running Puma: [processes]
web = "bundle exec puma -C config/puma.rb"
worker = "config/cron_entrypoint.sh"
And the shell script looks like this: #!/bin/sh
printenv | grep -v "no_proxy" >> /etc/environment
cron -f
Although I would say that cron isn’t a great solution for containerized apps on most platforms, it seems like scheduled processes need a rethink for todays infra. |
|