How to add a job to cron/anacron when creating Docker container

I would begin with the plugin tutorial series for the basic structure of a plugin:

If you want an example of how to add a job to a plugin the discourse-assign plugin has one that sends periodic reminders:

https://github.com/discourse/discourse-assign/blob/master/jobs/scheduled/enqueue_reminders.rb

4 לייקים