awx icon indicating copy to clipboard operation
awx copied to clipboard

Cannot relaunch a job with the prompted job_slice_count value

Open obaranov opened this issue 2 years ago • 0 comments

Please confirm the following

  • [X] I agree to follow this project's code of conduct.
  • [X] I have checked the current issues for duplicates.
  • [X] I understand that AWX is open source software provided for free and that I might not receive a timely response.

Bug Summary

When the job_slice_count is configured to be prompted on launch and user tries relaunch this job template job, it will receive the

 Bad Request (400) received - {'detail': 'Cannot relaunch sliced workflow job after slice count has changed.'}

AWX version

4.3.0

Select the relevant components

  • [ ] UI
  • [X] API
  • [ ] Docs
  • [ ] Collection
  • [ ] CLI
  • [ ] Other

Installation method

docker development environment

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

  1. Create Job Template. make sure the Job Slices is marked as "Prompt on launch".
  2. Launch job template with job_slic_count > 2 value
  3. Wait unit job completion.
  4. Select the resulting workflow job and click Relaunch.

Expected results

Api returned 400:

 Bad Request (400) received - {'detail': 'Cannot relaunch sliced workflow job after slice count has changed.'}

Actual results

Job should be relaunched with the initially prompted number for slices.

Additional information

No response

obaranov avatar Sep 21 '22 13:09 obaranov