And what would you guys recommend for job scheduli...
# server
f
And what would you guys recommend for job scheduling (I am using ktor for the main application) but have a bunch of tasks that need to be executed in certain intervals
f
there was a PR to add an scheduler to ktor but was rejected. I used a cronjob that fire some gradle's tasks
It isn't the best solution but it's flexible
f
hmm that doesn’t work very well with Docker unfortunately.
f
yap, in that case you need an scheduler. try with java.util.Timer and launch a TimerTask
m
You could also expose the jobs as http endpoints and call them through an external cron job or another docker container that manages task scheduling. This way you can ensure that a job only runs once if you want to run multiple instances of your application.
👍 1
f
Are there any downsides to using java util Timer?