Socket
Socket
Sign inDemoInstall

graphile-worker

Package Overview
Dependencies
102
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.2 to 0.16.3

12

dist/lib.js

@@ -335,4 +335,5 @@ "use strict";

const RETRYABLE_ERROR_CODES = [
"40001",
"40P01", // deadlock_detected
{ code: "40001", backoffMS: 50 },
{ code: "40P01", backoffMS: 50 },
{ code: "57P03", backoffMS: 3000 }, // cannot_connect_now
];

@@ -353,6 +354,7 @@ const MAX_RETRIES = 100;

catch (e) {
if (RETRYABLE_ERROR_CODES.includes(e.code)) {
const retryable = RETRYABLE_ERROR_CODES.find(({ code }) => code === e.code);
if (retryable) {
lastError = e;
// Try again in 50ms, or a little longer on future issues
await (0, exports.sleep)(50 * Math.sqrt(attempts + 1));
// Try again in backoffMS
await (0, exports.sleep)(retryable.backoffMS * Math.sqrt(attempts + 1));
}

@@ -359,0 +361,0 @@ else {

@@ -1,1 +0,1 @@

export declare const version = "0.16.2";
export declare const version = "0.16.3";

@@ -5,3 +5,3 @@ "use strict";

// This file is autogenerated by /scripts/postversion.mjs
exports.version = "0.16.2";
exports.version = "0.16.3";
//# sourceMappingURL=version.js.map
{
"name": "graphile-worker",
"version": "0.16.2",
"version": "0.16.3",
"type": "commonjs",

@@ -48,2 +48,7 @@ "description": "Job queue for PostgreSQL",

"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-brands-svg-icons": "^6.5.1",
"@fortawesome/free-regular-svg-icons": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@graphile/logger": "^0.2.0",

@@ -50,0 +55,0 @@ "@types/debug": "^4.1.10",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc