Skip to content

Commit

Permalink
Add more debug logging for when the job is attempted and the worker i…
Browse files Browse the repository at this point in the history
…s started (#4881)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
stxue1 and github-actions[bot] authored Apr 26, 2024
1 parent 0b0814d commit 1557b8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/toil/batchSystems/singleMachine.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ def _startChild(self, jobCommand, jobID, coreFractions, jobMemory, jobDisk, job_
# and all its children together. We assume that the
# process group ID will equal the PID of the process we
# are starting.
logger.debug("Attempting to run job command: %s", jobCommand)
popen = subprocess.Popen(jobCommand,
shell=True,
env=child_environment,
Expand Down
3 changes: 2 additions & 1 deletion src/toil/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ def workerScript(
if config.colored_logs:
install_log_color()

logger.debug("Worker started for job %s...", job_name)

##########################################
#Create the worker killer, if requested
##########################################
Expand Down Expand Up @@ -749,7 +751,6 @@ def in_contexts(contexts: List[str]) -> Iterator[None]:
def main(argv: Optional[List[str]] = None) -> None:
if argv is None:
argv = sys.argv

# Parse our command line
options = parse_args(argv)

Expand Down

0 comments on commit 1557b8a

Please sign in to comment.