District Core Developer DocsDistrict Core Developer Docs
Developers
Boilerplate
Modules
Bitbucket
Developers
Boilerplate
Modules
Bitbucket
  • Developers

    • Getting-Started
    • Git
    • Changelog
    • Building
    • Tests
    • Modules
    • Jobs
    • Accessibility
    • Other-Services
    • General-Tips
    • Architecture

Jobs and Queues

We use Laravel Horizon for running queues and job management. This requires that you have QUEUE_CONNECTION=redis set in .env.

You can access the horizon UI via /horizon and on production environment you need to be logged in as a super user.

See config/horizon.php for configuration options.

A horizon worker service is running as part of the lando stack but due to the way job queues load the entire app into memory, you need to restart the worker service if you make any code changes require by jobs. There is a script to do this for you:

vendor/bin/district-shell worker/resload-worker.sh
Edit this page
Prev
Modules
Next
Accessibility