Skip to content

Commit 85a05f6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6d80f02 commit 85a05f6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pydra/engine/workers.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -891,6 +891,7 @@ def close(self):
891891
"""Finalize the internal pool of tasks."""
892892
pass
893893

894+
894895
class PsijWorker(Worker):
895896
def __init__(self, **kwargs):
896897
"""Initialize worker."""
@@ -909,8 +910,8 @@ def make_spec(self, cmd=None, arg=None, cache_dir=None):
909910
spec = self.psij.JobSpec()
910911
spec.executable = cmd
911912
spec.arguments = arg
912-
spec.stdout_path = 'demo.stdout'
913-
spec.stderr_path = 'demo.stderr'
913+
spec.stdout_path = "demo.stdout"
914+
spec.stderr_path = "demo.stderr"
914915

915916
return spec
916917

@@ -921,9 +922,12 @@ def make_job(self, spec, attributes):
921922

922923
async def exec_psij(self, runnable, rerun=False):
923924
import psij
925+
924926
self.psij = psij
925-
jex = psij.JobExecutor.get_instance('local')
926-
spec = self.make_spec(runnable.inputs.executable, runnable.inputs.args, runnable.cache_dir)
927+
jex = psij.JobExecutor.get_instance("local")
928+
spec = self.make_spec(
929+
runnable.inputs.executable, runnable.inputs.args, runnable.cache_dir
930+
)
927931
job = self.make_job(spec, None)
928932
jex.submit(job)
929933
return
@@ -932,6 +936,7 @@ def close(self):
932936
"""Finalize the internal pool of tasks."""
933937
pass
934938

939+
935940
WORKERS = {
936941
"serial": SerialWorker,
937942
"cf": ConcurrentFuturesWorker,

0 commit comments

Comments
 (0)