Skip to content

Commit

Permalink
fix: add JobBundlePurpose to callbacks. (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Ramon Montoya Vozmediano <[email protected]>
  • Loading branch information
rmv authored Nov 14, 2023
1 parent 1af7cb7 commit 5c37b94
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/deadline/client/ui/cli_job_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@

from ..job_bundle import deadline_yaml_dump
from .dataclasses import CliJobSettings
from .dialogs.submit_job_to_deadline_dialog import SubmitJobToDeadlineDialog
from .dialogs.submit_job_to_deadline_dialog import (
SubmitJobToDeadlineDialog,
JobBundlePurpose,
)
from .widgets.cli_job_settings_tab import CliJobSettingsWidget
from ..job_bundle.submission import AssetReferences

Expand Down Expand Up @@ -47,6 +50,7 @@ def on_create_job_bundle_callback(
settings: CliJobSettings,
queue_parameters: list[dict[str, Any]],
asset_references: AssetReferences,
purpose: JobBundlePurpose = JobBundlePurpose.SUBMISSION,
) -> None:
"""
Perform a submission when the submit button is pressed
Expand Down
6 changes: 5 additions & 1 deletion src/deadline/client/ui/job_bundle_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
)
from ..job_bundle.parameters import apply_job_parameters, read_job_bundle_parameters
from .dataclasses import JobBundleSettings
from .dialogs.submit_job_to_deadline_dialog import SubmitJobToDeadlineDialog
from .dialogs.submit_job_to_deadline_dialog import (
SubmitJobToDeadlineDialog,
JobBundlePurpose,
)
from .widgets.job_bundle_settings_tab import JobBundleSettingsWidget
from ..job_bundle.submission import AssetReferences

Expand Down Expand Up @@ -61,6 +64,7 @@ def on_create_job_bundle_callback(
settings: JobBundleSettings,
queue_parameters: list[dict[str, Any]],
asset_references: AssetReferences,
purpose: JobBundlePurpose = JobBundlePurpose.SUBMISSION,
) -> None:
"""
Perform a submission when the submit button is pressed
Expand Down

0 comments on commit 5c37b94

Please sign in to comment.