You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/cli.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,15 @@ To enable this option simply pass the `--reload` or `-r` option to worker taskiq
84
84
Also this option supports `.gitignore` files. If you have such file in your directory, it won't reload worker
85
85
when you modify ignored files. To disable this functionality pass `--do-not-use-gitignore` option.
86
86
87
+
### Graceful reload
88
+
89
+
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.
90
+
91
+
```bash
92
+
taskiq worker my_module:broker
93
+
kill -HUP <main pid>
94
+
```
95
+
87
96
### Other parameters
88
97
89
98
*`--no-configure-logging` - disables default logging configuration for workers.
0 commit comments