Skip to content

Commit

Permalink
feat: improved debug messages (#21)
Browse files Browse the repository at this point in the history
merely introducing improved debug messages to facilitate solving future
issue reports.
  • Loading branch information
cmeesters authored Apr 6, 2024
1 parent 9b40ca6 commit 344ca68
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions snakemake_executor_plugin_slurm_jobstep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
__license__ = "MIT"

import os
import socket
import subprocess
import sys
from snakemake_interface_executor_plugins.executors.base import SubmittedJobInfo
Expand Down Expand Up @@ -112,8 +113,9 @@ def run_job(self, job: JobExecutorInterface):
# cpus per task and the number of CPU cores.
call = f"srun -n1 --cpu-bind=q {self.format_job_exec(job)}"

self.logger.debug(job.is_group())
self.logger.debug(call)
self.logger.debug(f"This job is a group job: {job.is_group()}")
self.logger.debug(f"The call for this job is: {call}")
self.logger.debug(f"Job is running on host: {socket.gethostname()}")
# this dict is to support the to be implemented feature of oversubscription in
# "ordinary" group jobs.
jobsteps[job] = subprocess.Popen(call, shell=True)
Expand Down

0 comments on commit 344ca68

Please sign in to comment.