Category: Updates
Tags: #release #jobs
Published: 2025-01-08

Introducing Jobs

Overview

The first milestone of the Jobs roadmap has been completed. The scheduler allows for the scheduling of repeating jobs at specific intervals using the cron syntax.

Example schedule.yaml:

schedule:
  testJobWithArgs:
    class: App\Jobs\ImportData
    cron: "5 * * * *"
    args:
      doSomething: true
      dontDoSomething: false

  testJobWithOutArgs:
    class: App\Jobs\SendReminderEmail
    cron: "15 * * * *"

Schedule

The scheduler can but run as a single infinitely polling process:

./vendor/bin/schedule

Or it can be run as a single polling instance to be called from a cron job:

./vendor/bin/schedule --poll

More Information

Coming Soon

The next milestone entails implementing the job queue system. This will allow for jobs to be pushed to the queue programmatically to be executed in the background.

Stay tuned for more updates on the Jobs roadmap.