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

When job-wait is executed immediately after job-create, it cause an IndexError #165

Open
haracejacob opened this issue Aug 1, 2023 · 1 comment

Comments

@haracejacob
Copy link

When job-wait is executed immediately after job-create, the core_v1.list_namespaced_pod() function sometimes returns an empty array, it cause an IndexError when accessing pod_list.items[0]. I think this is due to the delay between job creation and pod creation.

In this case the pod should be considered not ready. So it have to wait for the pod to be ready. But the script terminates without error handling. (rel https://github.com/rundeck-plugins/kubernetes/blob/master/contents/job-wait.py#L68)

So i made PR fixing this problem, could you please review it? (PR #155)

@ozon2
Copy link

ozon2 commented May 15, 2024

I have the same issue, it would be nice if the PR could be reviewed.

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

No branches or pull requests

2 participants