Skip to content

queue-prefork 1.0.5

Choose a tag to compare

@tevkert tevkert released this 09 Nov 11:28
· 20 commits to main since this release

Job lines from forked Horizon workers no longer interleave in the log.

  • Whole log lines: forked Horizon processes write to the stdout they share with the master, and queue:work writes each job line in three or four pieces, so with several workers busy the pieces mixed mid-line. That breaks anything that reads the container log line by line: log-based job counts, alerts on FAIL. In the contributor's measurement on a large app, 1,348 of 4,686 job lines (29 %) came out mangled, and none with the fix. Each forked process now holds its stdout until the newline and writes the line in one piece, up to 4 KB. Shared-log queue:work workers get the same. Workers with their own stdout, and stderr everywhere, are as before.
  • README: the line-at-a-time stdout is listed under Limitations and differences from stock.

Thanks to @serpentblade for finding this, measuring it and sending the fix (#1).

Full changelog: v1.0.4...v1.0.5