Commit 1e4bbfa
committed
Tree: fix error handling when gateway channel is closing
Fix PropagationChannel.ev_close() where gateway channel termination is
handled.
If we get an actual rc > 0, that comes from the gateway command itself
and that means the gateway is defective/misconfigured, in that case, we
mark it as unreachable at the Task level.
In addition, in that case, if we have not launched the remote commands
yet, they are redistributed to other available gateways.
rc=None is now handled as a normal termination of the propagation
channel and the corresponding gateway is not marked as unreachable
anymore.
Fixes #566.1 parent 014a201 commit 1e4bbfa
2 files changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
400 | 401 | | |
401 | 402 | | |
402 | 403 | | |
403 | 404 | | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
411 | 418 | | |
412 | 419 | | |
413 | 420 | | |
414 | 421 | | |
415 | | - | |
| 422 | + | |
| 423 | + | |
416 | 424 | | |
417 | 425 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
434 | | - | |
| 433 | + | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
0 commit comments