From 776ca60bcaf714ef704661f3ba5a0e3ff4db0437 Mon Sep 17 00:00:00 2001 From: Benjamin Piwowarski Date: Sun, 12 May 2024 21:41:33 +0200 Subject: [PATCH] fix: set init tasks before job creation --- src/experimaestro/core/objects.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/experimaestro/core/objects.py b/src/experimaestro/core/objects.py index 29efce8..0ba07b7 100644 --- a/src/experimaestro/core/objects.py +++ b/src/experimaestro/core/objects.py @@ -916,14 +916,14 @@ def submit( # --- Submit the job + # Sets the init tasks + self.init_tasks = init_tasks + # Creates a new job self.job = self.xpmtype.task( self.pyobject, launcher=launcher, workspace=workspace, run_mode=run_mode ) - # Sets the init tasks - self.init_tasks = init_tasks - # Validate the object job_context = JobContext(self.job) self.validate_and_seal(job_context)