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

Lookout API: Take empty Kubernetes (Pod) IDs into account when processing failed events #499

Merged
merged 2 commits into from
Jan 25, 2021

Conversation

carlocamurri
Copy link
Contributor

When reporting failed events, a Kubernetes ID for a given Job might not exist if a Pod is yet to be created (if the job fails before the Pod is created).

This is a problem in the Lookout API, as the database uses this Kubernetes ID as key for one of its tables (job_run).

To fix this, we generate an artificial ID for the Job.

@carlocamurri carlocamurri merged commit faa876f into master Jan 25, 2021
@carlocamurri carlocamurri deleted the carlocamurri/lookout-api-fix-run-id branch January 25, 2021 15:15
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

Successfully merging this pull request may close these issues.

None yet

2 participants