Commit 9498447
authored
fix: proactively check for shutdown event (#1396)
<!--
Please read and fill out this form before submitting your PR.
Please make sure you have reviewed our contributors guide before
submitting your
first PR.
-->
## Overview
<!--
Please provide an explanation of the PR, including the appropriate
context,
background, goal, and rationale. If there is an issue with this
information,
please provide a tl;dr and link the issue.
-->
The log lines in the execute method were panicing due to un-caught
shutdown events.
This nicely handles that.
This was verified locally. Previously the test would panic when run in a
loop < 10 times.
Now you can run it 100x 👍
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Bug Fixes**
- Implemented a check to prevent block execution during node shutdown,
enhancing system stability.
- Updated the execution process to utilize the provided context for
better operation tracking and cancellation support.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 24c09a0 commit 9498447
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
330 | 336 | | |
331 | 337 | | |
332 | 338 | | |
| |||
337 | 343 | | |
338 | 344 | | |
339 | 345 | | |
340 | | - | |
| 346 | + | |
341 | 347 | | |
342 | 348 | | |
343 | 349 | | |
| |||
0 commit comments