Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdk-core: Split execution summary into chunks (#867)
At the end of a data job execution, we log execution summary, which describes the python and sql steps that have been executed, their status, etc. Sometimes, when a job has a large number of steps, the execution summary will be logged as a single large string message. This is not an issue in most cases. However, on some operating systems, there are limits as to how large a logging message can be when printed to terminal, or send through a socket, and in such situations jobs fail with `OSError: [Errno 40] Message too long` errors triggered by the logging module. This change checks if the message is too long, and if that is the case, splits it into chunks. The chunks are then logged as separate messages to avoid OS-specific errors related to logging. Testing Done: Locally ran a data job with a large number of steps and verified that the execution summary is split into multiple log messages. Signed-off-by: Andon Andonov <[email protected]>
- Loading branch information