| |
@@ -62,6 +62,7 @@
|
| |
fbuild = forking.fork_build(build, fcopr, fpackage)
|
| |
builds_map[fbuild.id] = build.result_dir_name
|
| |
|
| |
+ db.session.commit()
|
| |
ActionsLogic.send_fork_copr(copr, fcopr, builds_map)
|
| |
return fcopr, created
|
| |
|
| |
@@ -234,7 +235,7 @@
|
| |
for chroot in fbuild.build_chroots:
|
| |
chroot.status = StatusEnum("forked")
|
| |
db.session.add(fbuild)
|
| |
- db.session.commit()
|
| |
+ db.session.flush()
|
| |
return fbuild
|
| |
|
| |
def create_object(self, clazz, from_object, exclude=list()):
|
| |
I'm not sure why, but I got this traceback error:
InvalidRequestError: This session is in 'committed' state; no
further SQL can be emitted within this transaction.
But anyway, it looks like the fork job should be committed once it
is completely done.