Commit d031a91
authored
fix: run command exits when an action reaches timeout (#97)
Problem:
When using the run subcommand to run an action that reaches its timeout,
the action is properly ended but the CLI itself does not exit. It's waiting
in _run_local_session() for the session.ended event to be set, but it's not
being set.
Solution:
The LocalSession's _action_callback method was not handling the case where the
returned ActionState was TIMEOUT. It now handles it.
Signed-off-by: Daniel Neilson <[email protected]>1 parent f6a54b2 commit d031a91
File tree
2 files changed
+34
-1
lines changed- src/openjd/cli/_run/_local_session
- test/openjd/cli
2 files changed
+34
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
437 | 470 | | |
438 | 471 | | |
439 | 472 | | |
| |||
0 commit comments