Skip to content

Commit

Permalink
Added docs.
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Kirilin <[email protected]>
  • Loading branch information
s3rius committed Jun 11, 2024
1 parent 70cb383 commit 11d9ca7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <main pid>
```

### Other parameters

* `--no-configure-logging` - disables default logging configuration for workers.
Expand Down

0 comments on commit 11d9ca7

Please sign in to comment.