Skip to content

Commit

Permalink
fix: set init tasks before job creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bpiwowar committed May 12, 2024
1 parent 3639f14 commit 776ca60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/experimaestro/core/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 776ca60

Please sign in to comment.