Skip to content

Add an option to override the job type at the workflow level (issue #14180) #15932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

Sasa993
Copy link
Contributor

@Sasa993 Sasa993 commented Apr 9, 2025

SUMMARY

Fixes 14180 issue.
This PR introduces a feature that allows overriding the job type of each workflow node at launch time. To enable this, the Enable prompt on launch for nodes job type field must be checked when creating or editing the workflow template.

During testing, I noticed that the override does not apply to nodes unless they have ask_job_type_on_launch enabled. It appears that the job_type is hardcoded at the node level upon creation. This can be easily addressed by setting ask_job_type_on_launch to True within the get_job_kwargs method. However, I wanted to confirm whether this behavior is intentional before doing that.

ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • API
AWX VERSION
24.6.2.dev302+gc698663f6d
ADDITIONAL INFORMATION

Please note that if the workflow includes nodes with mixed job_type values, enabling this feature will override all of them with a single job_type at execution time. I’ll include this clarification in the ask_nodes_job_type_on_launch help text in the corresponding Ansible-UI PR.

@github-actions github-actions bot added component:api component:awx_collection issues related to the collection for controlling AWX component:cli community labels Apr 9, 2025
@Sasa993 Sasa993 marked this pull request as ready for review April 9, 2025 09:04
@Sasa993 Sasa993 force-pushed the 14180-overwrite-job-type-at-workflow-level branch 3 times, most recently from ece6efc to 157340d Compare April 11, 2025 08:38
@Sasa993 Sasa993 force-pushed the 14180-overwrite-job-type-at-workflow-level branch from 157340d to 128f14a Compare April 11, 2025 12:10
@Sasa993
Copy link
Contributor Author

Sasa993 commented Apr 11, 2025

I have also created an Ansible UI PR for this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community component:api component:awx_collection issues related to the collection for controlling AWX component:cli
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to overwrite the job type at the Workflow level
1 participant