mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-05 11:48:33 +08:00
Store the reason for failure.
This commit is contained in:
@@ -114,8 +114,9 @@ def wait(config, session, msg):
|
||||
try:
|
||||
dependencies, tag = _get_deps_and_tag()
|
||||
except ValueError:
|
||||
log.exception("Failed to get module info from PDC. Max retries reached.")
|
||||
build.transition(config, state="failed")
|
||||
reason = "Failed to get module info from PDC. Max retries reached."
|
||||
log.exception(reason)
|
||||
build.transition(config, state="failed", state_reason=reason)
|
||||
session.commit()
|
||||
raise
|
||||
|
||||
|
||||
Reference in New Issue
Block a user