DragonflyRG
January 8, 2025

Introducing Jobs

Category : Updates
Tags :

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.

Have a project in mind?
Request a free, zero-obligation consultation.
Request Consultation arrow_forward