Skip to content

Commit eb721c1

Browse files
fix: skip unnecessary schema validation inside of remote jobs
1 parent 65a5360 commit eb721c1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/snakemake/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ def validate(data, schema, set_default=True):
4343
frame = inspect.currentframe().f_back
4444
workflow = frame.f_globals.get("workflow")
4545

46-
if workflow and workflow.modifier.skip_validation:
47-
# skip if a corresponding modifier has been defined
46+
if workflow and (workflow.modifier.skip_validation or workflow.remote_exec):
47+
# skip if a corresponding modifier has been defined or if this is a
48+
# remote job. In the latter case, the schema has been already validated by the
49+
# main process.
4850
return
4951

5052
try:

0 commit comments

Comments
 (0)