diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 09:38:05 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-04-15 09:38:05 +0200 |
| commit | df5cf5b307cd42e133f5a21b1bad25f011d937bd (patch) | |
| tree | 133086c679ea50195b75da719fcc727de6b7cde5 | |
| parent | 45f1cc854ca9476482b73baef9e782a80dc5362b (diff) | |
| download | shrinker-df5cf5b307cd42e133f5a21b1bad25f011d937bd.tar.gz shrinker-df5cf5b307cd42e133f5a21b1bad25f011d937bd.zip | |
FUCK PRECONDITION FAILED
| -rw-r--r-- | worker.js | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -367,7 +367,13 @@ function snakeCaseKeys(obj) { await seq.query("SET unique_checks=1"); console.log("acking batch"); - await Promise.all(msgs.map((m) => ch.ack(m)) ); + try { + await Promise.all(msgs.map((m) => ch.ack(m)) ); + } catch (err) { + console.error(err); // 406 Precondition failed + // processor gets duplicate messages for some reason + // TODO + } } catch (err) { // this should only happen for Deadlocks in prod // it *must not* fail due to broken schema or missing dependency |
