Skip to content
Permalink
Browse files
fix: caching process (#1225)
* generalization of multiext output

* Reformatting

* Fixed caching of jobs/rules

* FMT

* Moved encoding into hash update

Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
  • Loading branch information
jafors and johanneskoester committed Oct 20, 2021
1 parent fc8c5f6 commit 0825a29e46c08b200efe6bd0c66acf1e6828eed8
Showing 1 changed file with 8 additions and 4 deletions.
@@ -57,7 +57,7 @@ def _get_provenance_hash(self, job: Job):
wildcards=job.wildcards,
params=job.params,
)
h.update(source)
h.update(source.encode())
elif job.is_notebook:
_, source, _, _ = script.get_source(
job.rule.notebook,
@@ -66,16 +66,20 @@ def _get_provenance_hash(self, job: Job):
wildcards=job.wildcards,
params=job.params,
)
h.update(source)
h.update(source.encode())
elif job.is_wrapper:
_, source, _, _ = script.get_source(
wrapper.get_script(job.rule.wrapper, prefix=workflow.wrapper_prefix),
wrapper.get_script(
job.rule.wrapper,
sourcecahce=job.rule.workflow.sourcecache,
prefix=workflow.wrapper_prefix,
),
job.rule.workflow.sourcecache,
basedir=job.rule.basedir,
wildcards=job.wildcards,
params=job.params,
)
h.update(source)
h.update(source.encode())

# Hash params.
for key, value in sorted(job.params._allitems()):

0 comments on commit 0825a29

Please sign in to comment.