Expected Behaviour
Job.wait_unitl_complete should have an option to wait until the job's session has reached a lifecycleStatus of "ENDED". Without waiting for this, any test that must reason about the status of "end" session actions will have a race condition where the "end" session actions may not have yet completed. This is because the status of "end" session actions is not factored into the calculus of job completedness.
Current Behaviour
Job.wait_until_complete only takes the overall job status into account.
Reproduction Steps
This is a race condition, so reproduction is difficult.
Code Snippet
N/A