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

Gp failed submit #7

Merged
merged 2 commits into from
Jan 11, 2022
Merged

Gp failed submit #7

merged 2 commits into from
Jan 11, 2022

Conversation

gphillips8frw
Copy link
Contributor

This just adds a warning message when a job fails to submit. The error is raised by the clean process but it is a little unclear in the logs that the submit failed without this message.

@@ -102,6 +102,8 @@ def run(self):
self.__logger.info("Submitting Kubernetes Job: " + self.uu_name)
try:
run_and_track_job(self.kubernetes_client, job)
except:
logger.warning("Luigi has failed to submit the job, starting cleaning")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to see the exception here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could do, the clean function below also prints it though, didn't know if we wanted to double up?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok cool

@gphillips8frw gphillips8frw merged commit 2263cfd into master Jan 11, 2022
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