Background Jobs

Depfloy allows you to run background jobs on your server. This section will cover the background jobs features Depfloy provides to keep your server running smoothly.

What are Background Jobs?

Background jobs are tasks that run in the background on your server. They are useful for running tasks that need to run continuously, such as updating the database, sending emails, or processing data. Background jobs are run by the supervisor service.

Supervisor is a process control system for managing and monitoring Unix processes. It allows you to start, stop, and restart processes, as well as monitor their status and logs. You can run Laravel Queues, Horizon, or any other background job system with Supervisor.

You can run view background jobs by navigating to the “Background Jobs” section in the server settings at https://app.depfloy.com/servers/<serverID>/background-jobs.

To add a new background job, click the “Add Background Job” button in the top right corner of the page. You can add a new background job by providing the following information:

  • Job Name: The name of the background job.
  • Command: The command to run the background job.
  • Directory: The directory to run the background job.
  • User: The user to run the background job.
  • Process: The process to run the background job.
  • Start Seconds: The number of seconds to start the background job.
  • Stop Seconds: The number of seconds to stop the background job. It defaults to 15 seconds.
  • Stop Signal: The signal to stop the background job. It defaults to TERM.
Background Jobs

Also, you can stop, start, restart, edit or delete the background jobs from this page.

Was this page helpful?