Skip to content

Commit

Permalink
add a note on stopwaitsecs
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Dec 18, 2019
1 parent c8dd9a4 commit c667bbc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions horizon.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ Supervisor configuration files are typically stored in the `/etc/supervisor/conf
user=forge
redirect_stderr=true
stdout_logfile=/home/forge/app.com/horizon.log
stopwaitsecs=3600

> {note} You should ensure that the value of `stopwaitsecs` is greater than your longest running job; if not, Supervisor may kill the job before finishing while Horizon is being terminated.
#### Starting Supervisor

Expand Down
3 changes: 3 additions & 0 deletions queues.md
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,9 @@ Supervisor configuration files are typically stored in the `/etc/supervisor/conf
numprocs=8
redirect_stderr=true
stdout_logfile=/home/forge/app.com/worker.log
stopwaitsecs=3600

> {note} You should ensure that the value of `stopwaitsecs` is greater than your longest running job; if not, Supervisor may kill the job before finishing while the worker is being terminated.
In this example, the `numprocs` directive will instruct Supervisor to run 8 `queue:work` processes and monitor all of them, automatically restarting them if they fail. You should change the `queue:work sqs` portion of the `command` directive to reflect your desired queue connection.

Expand Down

0 comments on commit c667bbc

Please sign in to comment.