Skip to content

Commit

Permalink
Fix to health monitoring
Browse files Browse the repository at this point in the history
  • Loading branch information
John Newby committed Oct 21, 2022
1 parent cf99c90 commit cd57078
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 93 deletions.
2 changes: 1 addition & 1 deletion app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const main = async function() {
}

const heartbeat = async function() {
await queue.kill_canaries();
await queue.kill_canaries(address);

let ops = await queue.checkout(address, ~~(config.batchSize/batch_divider) + 1);
if (ops.length == 0) {
Expand Down
178 changes: 90 additions & 88 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"author": "",
"license": "MIT",
"dependencies": {
"@taquito/signer": "^13.0.1",
"@taquito/taquito": "^13.0.1",
"@taquito/signer": "^14.0.0",
"@taquito/taquito": "^14.0.0",
"console-stamp": "^3.0.3",
"pg": "^8.7.1",
"string-hex": "^1.0.0",
Expand Down
4 changes: 2 additions & 2 deletions queue.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function(db_connection) {
return pool.query(SENT_SQL, [op_hash, ids]);
};

const kill_canaries = function() {
const kill_canaries = function(originator) {
return pool.query(KILL_CANARIES_SQL, [ originator ]);
}

Expand All @@ -45,4 +45,4 @@ export default function(db_connection) {
kill_canaries,
state
};
}
}

0 comments on commit cd57078

Please sign in to comment.