Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-1437

galaxykit: add waiting for task

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Task Task
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • UI

      Some API calls don't wait for the action they triggered to be finished.
      That's handled when calling these from the UI, but with galaxykit, the process ends when the API responds, not when the thing is done.

      Proposed resolution:

      • add `galaxykit task wait all` - wait until all tasks are completed/failed/canceled
      • add `galaxykit task wait <id>` - wait for a specific task

      (Later, we should consider also adding a `--wait` option to all existing galaxykit operations, but that part needs to wait for the command.py refactor. => https://issues.redhat.com/browse/AAH-1760)

      (the logic in https://github.com/pulp/pulp-smash/blob/main/pulp_smash/pulp3/bindings.py#L59 should be correct, whether we can import it directly or copy)

              mhradil-1 Martin Hradil
              mhradil-1 Martin Hradil
              Archiver:
              ranumula@redhat.com Raju Anumula

                Created:
                Updated:
                Resolved:
                Archived: