Moodle uses tasks to defer processing of expensive or batch operations to background tasks. They come in two forms:
- Scheduled tasks are configured to run on a regular basis in a cron-like fashion.
- Ad hoc tasks are run-once jobs created by actions in the UI.
They're launched by the cron, either