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)