Commit 4fc59bb
committed
fix: file locking for state.yaml concurrent access
Use fcntl.LOCK_EX for writes and LOCK_SH for reads to prevent
pipeline background tasks and API requests from corrupting state.
Fixes the 'researcher failed' status flicker seen during E2E test.1 parent 4d549ae commit 4fc59bb
2 files changed
Lines changed: 20 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
498 | 499 | | |
499 | 500 | | |
500 | 501 | | |
501 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
502 | 509 | | |
503 | 510 | | |
504 | 511 | | |
| 512 | + | |
505 | 513 | | |
506 | 514 | | |
507 | 515 | | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
512 | 526 | | |
513 | 527 | | |
514 | 528 | | |
| |||
0 commit comments