Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneskoester committed Oct 14, 2023
1 parent 7ccbe20 commit 83f5d7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions snakemake/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ def _setup_logger(
stdout: bool = False,
mode: ExecMode = ExecMode.DEFAULT,
dryrun: bool = False,
latency_wait: int = 5,
):
if not self.output_settings.keep_logger:
setup_logger(
Expand All @@ -196,7 +195,6 @@ def _setup_logger(
mode=mode,
show_failed_logs=self.output_settings.show_failed_logs,
dryrun=dryrun,
latency_wait=latency_wait,
)

def _check_is_in_context(self):
Expand Down Expand Up @@ -399,7 +397,6 @@ def execute_workflow(
stdout=executor_plugin.common_settings.dryrun_exec,
mode=execution_settings.mode,
dryrun=executor_plugin.common_settings.dryrun_exec,
latency_wait=execution_settings.latency_wait,
)

if executor_plugin.common_settings.local_exec:
Expand Down
8 changes: 1 addition & 7 deletions snakemake/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import inspect
import textwrap

from snakemake.common import DYNAMIC_FILL, async_run
from snakemake.common import DYNAMIC_FILL


def get_default_exec_mode():
Expand Down Expand Up @@ -306,7 +306,6 @@ def __init__(self):
self.show_failed_logs = False
self.logfile_handler = None
self.dryrun = False
self.latency_wait = 5

def setup_logfile(self):
from snakemake_interface_executor_plugins.settings import ExecMode
Expand Down Expand Up @@ -485,9 +484,6 @@ def format_item(item, omit=None, valueformat=str):
yield f" resources: {resources}"

def show_logs(logs):
from snakemake.io import wait_for_files

async_run(wait_for_files(logs, latency_wait=self.latency_wait))
for f in logs:
try:
content = open(f, "r").read()
Expand Down Expand Up @@ -718,7 +714,6 @@ def setup_logger(
mode=None,
show_failed_logs=False,
dryrun=False,
latency_wait=5,
):
from snakemake.settings import Quietness

Expand Down Expand Up @@ -755,4 +750,3 @@ def setup_logger(
logger.mode = mode
logger.dryrun = dryrun
logger.show_failed_logs = show_failed_logs
logger.latency_wait = latency_wait

0 comments on commit 83f5d7e

Please sign in to comment.