Repository navigation
Commit 8df4e98
Stop the ISRM tutorial's run_isrm from hanging on a silent worker
The EarthSciLab event stream sends a keep-alive every 15 s, so watch()'s
240 s socket timeout never fired on a quiet stream and it never fell back to
GET /runs/{id}. When a cloud worker died without reporting back, run_isrm
waited forever. After 60 s with no real event, watch() now checks the run
directly and returns if it has ended.
Same change as EarthSciML/isrm.esm dbf4b12, in both the post's code block and
its notebook copy.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent d9c9a7f commit 8df4e98
2 files changed
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
522 | 526 | | |
523 | 527 | | |
524 | 528 | | |
525 | 529 | | |
526 | 530 | | |
527 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
528 | 537 | | |
529 | 538 | | |
530 | 539 | | |
531 | 540 | | |
532 | 541 | | |
| 542 | + | |
533 | 543 | | |
534 | 544 | | |
535 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
536 | 552 | | |
| 553 | + | |
537 | 554 | | |
538 | 555 | | |
539 | 556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
525 | 525 | | |
526 | 526 | | |
527 | 527 | | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
528 | 532 | | |
529 | 533 | | |
530 | 534 | | |
531 | 535 | | |
532 | 536 | | |
533 | 537 | | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
534 | 543 | | |
535 | 544 | | |
536 | 545 | | |
537 | 546 | | |
538 | 547 | | |
| 548 | + | |
539 | 549 | | |
540 | 550 | | |
541 | 551 | | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
542 | 558 | | |
| 559 | + | |
543 | 560 | | |
544 | 561 | | |
545 | 562 | | |
| |||
0 commit comments