Commit aff60b6
committed
Add timeout to process_visit.
This change protects against extremely long (possibly hours) delays
when performing network I/O.
This involves reinstating the WORKER_TIMEOUT environment variable,
which was inadvertantly removed in the migration from Gunicorn to Keda.
Unlike the original worker-based implementation, this one lets the
process try to clean up (through normal exception handling) instead of
a hard kill.1 parent c64d454 commit aff60b6
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
538 | | - | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
539 | 548 | | |
540 | 549 | | |
541 | 550 | | |
| |||
0 commit comments