we have many releases per day, each release has its own folder. The folder current
points to latest release folder. We are using the job queue feature of Laravel with Redis.
Now it happens sometimes that jobs stay longer in the queue then the release exist:
- release100
- release101
- release102
- current -> release103
Job created with release103
.
dispatch(new ProcessPodcast($podcast));
After four new deployments release103
was already cleaned from the server:
- release104
- release105
- release106
- current -> release107
And when the Job now is ready to be processed I get the error "The file release103/vendor/.../foo.php does not exists".
Is there any nice way to avoid this behavior?