How do you create custom scheduled tasks in Concrete?

How do you create custom scheduled tasks in Concrete?

Answer: To create custom scheduled tasks in Concrete CMS, you can follow these steps:

1. Create a Job: Define a new job by creating a PHP class that extends `ConcreteCoreJobJob`. Override the `run()` method to define the job’s functionality.

2. Register the Job: Use the Concrete CMS interface to register your job. Go to Dashboard > System & Settings > Automation > Scheduled Jobs, and add your new job.

3. Set Schedule: Specify the frequency for when the scheduled task should run (e.g., daily, weekly).

4. Test the Job: Manually execute your job to ensure it works correctly.

5. Monitor Logs: Check the job execution logs to verify it runs as expected during scheduled intervals.

Once set up, Concrete will handle the execution based on your configuration.

Related Questions & Topics