Skip to content

Release 1855

Choose a tag to compare

@github-actions github-actions released this 02 Aug 09:48
e25680f

Delayed Jobs

There is a back ground on School Experience called Delayed_jobs which sends confirmation emails. This job needs to be running when the application is redeployed.

Problem

The job is a background task and needs to be fired off, manually.

Solution

Run the docker image a second time, with a different name. Do not allow the application (PUMA web server ) to start. but run the 'delayed_jobs' service.
The job does not have to run on review applications, and probably in development. so there is a flag that defaults to 0 which prevents the service starting.
The flag is overriden in staging to start the service.