Skip to content
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

job_wait times out when job ends with status error #15773

Open
5 of 11 tasks
mhallin2 opened this issue Jan 24, 2025 · 0 comments
Open
5 of 11 tasks

job_wait times out when job ends with status error #15773

mhallin2 opened this issue Jan 24, 2025 · 0 comments

Comments

@mhallin2
Copy link

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

When a AAP job ends with status error the module will still wait for event_processing_finished and this can take long time (hours) hence the job will wait until timeout is reached.

AWX version

4.5.15

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

N/A

Modifications

no

Ansible version

2.16

Operating system

RHEL 9

Web browser

No response

Steps to reproduce

force a job to end with status error. ensure event processing time take longer than job_wait timeout setting.

  • name: Configure Windows test VM
    ansible.controller.job_launch:
    job_template: "This Job will fail with status error"
    register: Job

  • name: Wait for job to fail with status error
    ansible.controller.job_wait:
    job_id: "{{ Job.id }}"
    timeout: 7200
    interval: 30

Expected results

wait_job should not timeout it should report back that job failed sooner.

Actual results

TASK [Wait for server to be configured] ****************************************
task path: /runner/project/automated_tests/tasks/windows_configure_vm.yml:24
fatal: [localhost]: FAILED! => {"changed": false, "elapsed": 7204.267789, "finished": null, "id": 352663, "msg": "Monitoring of Job - 352663 aborted due to timeout", "started": "2025-01-23T09:00:18.690410Z", "status": "running"}

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant