redash/bin
Josh Bohde e2e8714155
Enable graceful shutdown of rq workers (#5214)
* Enable graceful shutdown of rq workers

* Use `exec` in the `worker` command of the entrypoint to propagate
  the `TERM` signal
* Allow rq processes managed by supervisor to exit without restart on
  expected status codes
* Allow supervisorctl to contact the running supervisor
* Add a `shutdown_worker` command that will send `TERM` to all running
  worker processes and then sleep. This allows orchestration systems
  to initiate a graceful shutdown before sending `SIGTERM` to
  supervisord

* Use Heroku worker as the BaseWorker

This implements a graceful shutdown on SIGTERM, which simplifies
external shutdown procedures.

* Fix imports based upon review

* Remove supervisorctl config
2020-11-05 11:49:45 +02:00
..
bundle-extensions Fix bundle-extensions script to work on recent importlib-resources. (#5050) 2020-07-16 23:05:22 +03:00
docker-entrypoint Enable graceful shutdown of rq workers (#5214) 2020-11-05 11:49:45 +02:00
flake8_tests.sh Add more flake8 tests and fail build if any test fails (#4055) 2019-08-18 11:27:44 +03:00
get_changes.py Migrate the application to Python 3 (#4251) 2019-10-24 12:42:13 +03:00
release_manager.py Migrate the application to Python 3 (#4251) 2019-10-24 12:42:13 +03:00
run Fix: support for .env files without EXPORT 2014-04-20 09:43:17 +03:00
upgrade Migrate the application to Python 3 (#4251) 2019-10-24 12:42:13 +03:00