-
Notifications
You must be signed in to change notification settings - Fork 44
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
[Enhancement] [zos_job_submit] Async support for zos_job_submit #1786
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Upgrade!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is great. Is mostly questions I have
plugins/action/zos_job_submit.py
Outdated
|
||
if remote_path: | ||
self._fixup_perms2((tmp, remote_path)) | ||
# remote_path = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can be removed rather than commented
plugins/action/zos_job_submit.py
Outdated
|
||
tmp_src = self._connection._shell.join_path(tmp, "source") | ||
# tmp_src = self._connection._shell.join_path(tmp, "source") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these can be removed too
assert result.stderr == "" | ||
|
||
finally: | ||
os.remove("inventory.yml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if these two could have been NamedTemporaryFiles ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
- name: Query async task. | ||
async_status: | ||
jid: "{{{{ job_task.ansible_job_id }}}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you share how a non async status would fail in this case?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
SUMMARY
Fixes #1249 and #1748.
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
In the end, zos_copy was not needed to be changed, zos_job_submit's action plugin can run zos_copy and block the rest of the execution flow until the local JCL file is uploaded to the remote host.