Repository navigation
·
5 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
- ✨ A task whose timeout timer runs late because the parent's event loop was blocked now keeps waiting while the child's output read after the deadline is still arriving, for at most as long as the timer ran late. Output counts as still arriving if more is read within
streamFlushMillisof the previous check, or while batch-cluster is still handling output it read: a partial line it will flush, or a pass or fail token while the task waits to settle. A child that sent nothing more times out as soon as the block ends. Without a block the timer runs at most a few milliseconds late, so a task times out within a few milliseconds of its deadline, as before. - 🐞 A task whose child replies while the parent's event loop is blocked past the task's deadline now resolves instead of rejecting with
TaskTimeoutError, if the parent can read the rest of the reply within as long as the block overran the deadline. This includes replies larger than the pipe buffer, and stderr failure tokens without a trailing newline whenshouldIgnoreStderrLineis set. Previously, a reply that arrived during a 1.5-second synchronous block withtaskTimeoutMillis: 500was timed out. If the child exits during the block, the task now rejects with "Process terminated before task completed", as when a child exits mid-task, instead ofTaskTimeoutError, and notaskTimeoutevent is emitted. - 🐞 A startup task whose process ends before it replies, whether its child exits or the process is ended, now rejects with "Process terminated before task completed" instead of staying pending forever. It emits no
startError;childEndreports the exit. A startup task that times out now emits onestartErrorinstead of two. - 🐞 Health checks no longer restart a process's idle clock, so
maxIdleMsPerProcessretires a process that has run only health checks since its last task. Previously, ahealthCheckIntervalMillisshorter thanmaxIdleMsPerProcesskept idle processes, and their children, alive until something else ended them.
Full Changelog: v19.5.0...v19.6.0