Commit 6da16a4
committed
fix(12-04): add process signal handlers to ResourceCache
- Clear existing interval before creating new one in enablePersistence
- Register SIGTERM and SIGINT handlers for graceful shutdown
- Ensures intervals are cleaned up on process exit
- Prevents resource leaks in long-running processes1 parent 0fb8ead commit 6da16a4
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
488 | 488 | | |
489 | 489 | | |
490 | 490 | | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
491 | 497 | | |
492 | 498 | | |
493 | 499 | | |
| |||
500 | 506 | | |
501 | 507 | | |
502 | 508 | | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
503 | 518 | | |
504 | 519 | | |
505 | 520 | | |
| |||
0 commit comments