Skip to content

Commit cd4839e

Browse files
Use workflow default executor if not set in template function
1 parent f25685a commit cd4839e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gwf/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
import os
66
import os.path
7+
from typing import Optional
78
import unicodedata
89
from collections import defaultdict
910
from collections.abc import Mapping
@@ -194,7 +195,7 @@ class AnonymousTarget:
194195
group: str = attrs.field(default=None)
195196
working_dir: str = attrs.field(default=".")
196197
protect: set = attrs.field(factory=set, converter=set)
197-
executor: executors.Executor = attrs.field(factory=executors.Bash)
198+
executor: Optional[executors.Executor] = attrs.field(default=None)
198199
spec: str = attrs.field(default="")
199200

200201
def __attrs_post_init__(self):

0 commit comments

Comments
 (0)