diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-26 23:45:10 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-03-26 23:45:10 +0200 |
| commit | b88c4dec4fed408ebc43e1798c840f4dd6fd6a95 (patch) | |
| tree | 3eaecca4bf95639301fafda6b1fd0bda7034f4e7 | |
| parent | 24b7455f76ff222b07a1277adda131802d401d22 (diff) | |
| download | bridge-b88c4dec4fed408ebc43e1798c840f4dd6fd6a95.tar.gz bridge-b88c4dec4fed408ebc43e1798c840f4dd6fd6a95.zip | |
log a bit more
| -rw-r--r-- | api.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -124,6 +124,7 @@ async function db_serialized(con, query, data) { if (err.sqlState != "40001") throw err; // important! with pg, it is err.code, // with pg-native, it is err.sqlState + console.log("serialization error, retrying"); } /* transaction end */ } while (!commit_success); @@ -193,6 +194,7 @@ async function anyJobsRunningFor(con, name, id) { (type='compile' AND payload->>'type'='player' AND payload->>'id'=$2) ) AND status<>'finished' AND status<>'failed' `, [name, id]); // TODO improve dependency tracking + console.log("jobs running for %s: %s", name, result.rows[0].jobs_running); return result.rows[0].jobs_running; } |
