mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-04-24 10:43:16 +08:00
Allow resuming from a failure during the "init" phase
This also shifts build failure transitions from individual functions in utils.py to the init module handler.
This commit is contained in:
@@ -265,6 +265,9 @@ class ModuleBuild(MBSBase):
|
||||
# If the rebuild_strategy isn't specified, use the default
|
||||
rebuild_strategy=rebuild_strategy or conf.rebuild_strategy
|
||||
)
|
||||
# Add a state transition to "init"
|
||||
mbt = ModuleBuildTrace(state_time=now, state=module.state)
|
||||
module.module_builds_trace.append(mbt)
|
||||
session.add(module)
|
||||
session.commit()
|
||||
module_build_service.messaging.publish(
|
||||
|
||||
Reference in New Issue
Block a user