Log restructure - #31
Merged
Merged
Conversation
Move logging handlers to the package logger so verbosity is enforced per handler: the console follows -v/-d (default now INFO) while a new run.log always records DEBUG, both with timestamps. A new --log_dir argument (default: the output VCF with .vcf.gz replaced by _logs) holds run.log, a command.txt invocation record, and a task_logs/ directory for upcoming per-process tool logs. Runs now finish with a status/elapsed-time message, emitted from a finally so it also lands on failure paths. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Job now requires a keyword-only task_name grouping jobs by pipeline
stage, and assigns each job a job_id ({name}-{n}) from per-name
counters that reset once per CLI invocation, so ids stay unique across
multi-DAG runs. Jobs report themselves by job_id in scheduler and
error messages. These fields feed the upcoming per-process task logs;
neither is part of job identity, which stays keyed on the shell
pipeline alone.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Each job gets a JobLogSink on its execution Context, so every process
it spawns -- including process substitutions, which previously
bypassed stderr redirection entirely -- writes stderr to its own
task_logs/{task}/{job_id}.{stage}.log file, beginning with a header
recording the task, job, and command. Stdout is captured alongside
(headerless, sharing the process's stage index when it would
otherwise reach the terminal. Both streams of one process share a
stage index, allocated in spawn order.
On failure, the run log now reports the failing sub-command with its
exit code, pid, log path, and the last 20 lines of its log, plus a
pointer to the task-log directory; interrupted and launch-failed jobs
list their logs. Successful jobs prune logs that hold nothing but a
header.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
EOF
)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.