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

Initial stab at managing asynchronous HMC jobs #494

Open
andy-maier opened this issue Oct 17, 2023 · 0 comments
Open

Initial stab at managing asynchronous HMC jobs #494

andy-maier opened this issue Oct 17, 2023 · 0 comments
Assignees
Milestone

Comments

@andy-maier
Copy link
Member

andy-maier commented Oct 17, 2023

The currently available WS-API operations for asynchronous HMC jobs are:

  • Query Job Status
  • Delete Completed Job Status
  • Cancel Job

These operations need the "job-id" of the job.

There is no operation to list the currently present jobs.

What could be done in this situation is the following:

  • Whenever a command errors out or times out and has a job created that still runs, it should display the job-id of the job. Ideally in a way so it can be parsed using shell techniques.

  • Add new commands:

    zhmc job status JOBID - performs "Query Job Status" and, and displays operation result
      (for status "complete") or job status (for any other status)
    
    zhmc job wait JOBID - polls using "Query Job Status" for the job to end, and displays operation result
     (for status "complete") or cancellation status (for status "canceled")
    
    zhmc job cancel JOBID - performs "Cancel Job", ignoring duplicate cancellations, then polls using
     "Query Job Status" for the job to end, and displays operation result (for status "complete") or
     cancellation status (for status "canceled")
    
    zhmc job delete JOBID - performs "Delete Completed Job Status" and displays the deletion status.
    

    where JOBID is the job-id of the job.

This requires underlying support in the zhmcclient package (see zhmcclient/python-zhmcclient#1299)

@andy-maier andy-maier added this to the 1.10.0 milestone Oct 17, 2023
@andy-maier andy-maier self-assigned this Oct 17, 2023
@andy-maier andy-maier changed the title Provide initial stab at managing asynchronous HMC jobs Initial stab at managing asynchronous HMC jobs Oct 18, 2023
@andy-maier andy-maier modified the milestones: 1.10.0, 1.11.0 Feb 8, 2024
@andy-maier andy-maier modified the milestones: 1.11.0, 1.12.0, 1.13.0 May 18, 2024
@andy-maier andy-maier modified the milestones: 1.12.0, 1.13.0 Sep 29, 2024
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