Repository navigation
queue-prefork 1.0.5
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:workwrites 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 onFAIL. 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-logqueue:workworkers 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