Jenkins CI CD for scheduled tasks

Hi,
Is there any way to use the CI CD pipeline as described in below projects to deploy scheduled tasks?

I have made it working for IS packages. But not sure, how to put scheduled tasks configuration as part of the repo and ultimately deploy it to target server using the above jenkins pipeline?
Thanks
Mashrur

Scheduled tasks are stored in the DB and hence there is no easy way of doing this.
I would recommend that instead of using persistent scheduled tasks, to instead have your packages set up everything themselves on startup. This makes your packages more autonomous and reduces unnecessary configuration.

So, create a startup service in your package, which itself creates the scheduled task via the services pub.scheduler:addComplexTask or pub.scheduler:addRepeatingTask.

For completion sake, and extra brownie points you could also create a shutdown service, to cancel the task.
regards
John
Product Manager
Integration & Microservice runtime

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.