Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make Groovy Seed Job more resilient to errors when creating/updating jobs/views #83

Merged
merged 1 commit into from
Jun 12, 2018
Merged

Conversation

UnsafePointer
Copy link
Contributor

This might be a edge-case situation but in the case of #79, when there's a bug in the seed job groovy script that produces an error before the seed job being able to update itself a manual intervention is required. With this change, errors while processing the xml would be ignored and the seed job would be able to update itself if none of the xml errors are related to it.

}
} catch (Exception ignored) {
if (view) {
println "Could not update ${fullName}"
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to print at least the Exception message:

`println "Could not update ${fullName}: ${e.message}"

Same for the messages below.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, you're right. Will update this.

…jobs or views

This might be a edge-case situation but in the case of #79, when there's a bug
in the seed job groovy script that produces an error before the seed job being
able to update itself a manual intervention is required. With this change,
errors while processing the xml would be ignored and the seed job would be
able to update itself if none of the xml errors are related to it.
Copy link
Contributor

@mnonnenmacher mnonnenmacher left a comment

Choose a reason for hiding this comment

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

Thanks @Ruenzuo !

@mnonnenmacher mnonnenmacher merged commit 8c1512a into heremaps:master Jun 12, 2018
@UnsafePointer UnsafePointer deleted the fix_seed_job branch June 13, 2018 15:38
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants