MemberJunction / MJ

Main MemberJunction Repository
https://docs.memberjunction.org/
ISC License
4 stars 0 forks source link

Scheduled Tasks Module for Running Recurring Jobs #343

Closed cadam11 closed 2 months ago

cadam11 commented 3 months ago

Define a ScheduledTaskBase class as usual. For the scheduled task type, we will have an enumeration of types/names, with each type having sub-classes of the base class that implement the desired functionality. Implement a sub-class specifically for running the external change detection and add a new scheduled task type record for this.

The Scheduled Tasks entity will have rows indicating the task type to run, frequency, active status, etc. Scheduled Task Runs will log when a task starts, ends, fails, etc.

This setup can be used for running any recurring jobs. We will include a field in the Scheduled Tasks entity to determine where the task runs, such as a deployment name. This way, the software configured in each environment will only pick up matching tasks, based on environment variables.

AN-BC commented 2 months ago

This is now resolved via the Scheduled Actions project