Skip to content

Commit b4c28f6

Browse files
authored
chore(controller): both the state and failed fields need to be updated (#197)
1 parent 9ffb6fe commit b4c28f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rootfs/api/models/app.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ def pipeline(self, release, ptypes, force_deploy=False):
314314
self.deploy(release, ptypes, force_deploy, rollback_on_failure)
315315
if release.state in ["created", "crashed"]:
316316
release.state = "succeed"
317+
release.failed = False
317318
ptypes = list(ptypes) if ptypes is not None else ptypes
318319
release.add_condition(state="succeed", action="pipeline", ptypes=ptypes)
319320
except Exception as e:

0 commit comments

Comments
 (0)