Skip to content

Commit

Permalink
fix: move max_status_checks_per_second attribute setting before the w…
Browse files Browse the repository at this point in the history
…ait thread of cluster backends is started to avoid missing attribute errors (#1775)
  • Loading branch information
johanneskoester committed Jul 29, 2022
1 parent 878420c commit a48e9d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions snakemake/executors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ def __init__(
assume_shared_fs=assume_shared_fs,
keepincomplete=keepincomplete,
)
self.max_status_checks_per_second = max_status_checks_per_second

if not self.assume_shared_fs:
# use relative path to Snakefile
Expand Down Expand Up @@ -746,8 +747,6 @@ def __init__(
self.disable_default_resources_args = disable_default_resources_args
self.disable_envvar_declarations = disable_envvar_declarations

self.max_status_checks_per_second = max_status_checks_per_second

self.status_rate_limiter = RateLimiter(
max_calls=self.max_status_checks_per_second, period=1
)
Expand Down

0 comments on commit a48e9d0

Please sign in to comment.