diff --git a/docs/guide/cli.md b/docs/guide/cli.md index fcfd94c..af40aa7 100644 --- a/docs/guide/cli.md +++ b/docs/guide/cli.md @@ -84,6 +84,15 @@ To enable this option simply pass the `--reload` or `-r` option to worker taskiq Also this option supports `.gitignore` files. If you have such file in your directory, it won't reload worker when you modify ignored files. To disable this functionality pass `--do-not-use-gitignore` option. +### Graceful reload + +To perform graceful reload, send `SIGHUP` signal to the main worker process. This action will reload all workers with new code. It's useful for deployment that requires zero downtime, but don't use orchestration tools like Kubernetes. + +```bash +taskiq worker my_module:broker +kill -HUP
+``` + ### Other parameters * `--no-configure-logging` - disables default logging configuration for workers.