Skip to content
phstc edited this page Oct 8, 2014 · 6 revisions

TTIN

Shoryuken will respond to TTIN by printing backtraces for all threads in the process along with the current number of busy and ready processors and the actual weights of the queues.

kill -TTIN [shoryuken_pid]

USR1

USR1 tells Shoryuken to soft shutdown. It will stop accepting new work and exit when all processors are done.

kill -USR1 [shoryuken_pid]

TERM

TERM tells Shoryuken to hard shutdown within a timeout. Any processors that do not finish within the timeout are hard terminated and their messages are pushed back to AWS SQS. The timeout defaults to 8 seconds since all Heroku processes must exit within 10 seconds.

The timeout can be defined through the -t option or in the -C shoryuken.yml config by setting the timeout: N value.

kill -TERM [shoryuken_pid]