refs #4550 getJob: Transaction commit fix
gitea/printnatura/pipeline/head This commit looks good
Details
gitea/printnatura/pipeline/head This commit looks good
Details
This commit is contained in:
parent
0a32ef9041
commit
6a5b7f4a25
|
@ -163,9 +163,9 @@ class PrintServer {
|
||||||
if (printJob) {
|
if (printJob) {
|
||||||
jobId = printJob.id;
|
jobId = printJob.id;
|
||||||
await conn.query(updateQuery, ['printing', null, jobId]);
|
await conn.query(updateQuery, ['printing', null, jobId]);
|
||||||
await conn.commit();
|
|
||||||
this.jobLog(jobId, 'debug', 'get: printing');
|
this.jobLog(jobId, 'debug', 'get: printing');
|
||||||
}
|
}
|
||||||
|
await conn.commit();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
await conn.rollback();
|
await conn.rollback();
|
||||||
if (jobId)
|
if (jobId)
|
||||||
|
|
Loading…
Reference in New Issue