This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Variable DELAYED_JOB_ARGS contains the arguments for delayed jobs for, e.g. defining queues and worker pools. | |
# function that is called when the docker container should stop. It stops the delayed job processes | |
_term() { | |
echo "Caught SIGTERM signal! Stopping delayed jobs !" | |
# unbind traps | |
trap - SIGTERM | |
trap - TERM |