Commit c7d8d2f
Fix Windows Threading Issues (#385)
* Fix bug on windows with uvicorn when multiple workers.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Force socket to listen before starting server
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix Ctrl+C on windows
* Update src/litserve/server.py
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fix comments - Ctrl+C on Windows
* Update src/litserve/server.py
Fix Type hint
Co-authored-by: Aniket Maurya <theaniketmaurya@gmail.com>
* Update src/litserve/server.py
Remove windows comment.
Co-authored-by: Aniket Maurya <theaniketmaurya@gmail.com>
* Fix threading import Thread
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Increase test timeout => 30mn
* Fix default self._uvicorn_servers
* Fix sockets iteration
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* No Need to catch Keyboard Interrupt on windows. just close Threads
* Update Timeout + testing CICD
* Fix timeout for gpu tests
* Fix KeyboardInterrupt Windows
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* KeyboardInterrupt Windows - MultipleWorkers
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Move pid detection to LitLoop for less intrusivity
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Revert changes in CICD
* Remove lock (useless)
* Apply suggestions from code review
---------
Co-authored-by: Francois Ponchon <francois.ponchon@michelin.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Aniket Maurya <theaniketmaurya@gmail.com>1 parent 7e01984 commit c7d8d2f
File tree
4 files changed
+54
-13
lines changed- src/litserve
- loops
4 files changed
+54
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
216 | | - | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
185 | 188 | | |
186 | 189 | | |
187 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| 34 | + | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
179 | | - | |
180 | 182 | | |
181 | 183 | | |
182 | 184 | | |
| |||
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
| 346 | + | |
344 | 347 | | |
345 | 348 | | |
346 | 349 | | |
| |||
599 | 602 | | |
600 | 603 | | |
601 | 604 | | |
602 | | - | |
| 605 | + | |
603 | 606 | | |
604 | 607 | | |
605 | 608 | | |
606 | | - | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
607 | 612 | | |
608 | | - | |
609 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
610 | 620 | | |
611 | 621 | | |
612 | 622 | | |
613 | | - | |
614 | | - | |
615 | | - | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
616 | 627 | | |
617 | 628 | | |
618 | 629 | | |
| |||
622 | 633 | | |
623 | 634 | | |
624 | 635 | | |
625 | | - | |
| 636 | + | |
626 | 637 | | |
627 | 638 | | |
628 | 639 | | |
629 | 640 | | |
630 | 641 | | |
631 | 642 | | |
632 | 643 | | |
633 | | - | |
634 | 644 | | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
635 | 654 | | |
636 | 655 | | |
637 | 656 | | |
| |||
641 | 660 | | |
642 | 661 | | |
643 | 662 | | |
644 | | - | |
645 | | - | |
| 663 | + | |
| 664 | + | |
646 | 665 | | |
647 | 666 | | |
648 | 667 | | |
| |||
0 commit comments