Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lokalise/background-jobs-common

Package Overview
Dependencies
Maintainers
10
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lokalise/background-jobs-common - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

2

dist/background-job-processor/constants.d.ts
/**
* How many days we retain completed jobs
*/
export declare const RETENTION_COMPLETED_JOBS_IN_DAYS = 3;
export declare const RETENTION_COMPLETED_JOBS_IN_AMOUNT = 50;
/**

@@ -6,0 +6,0 @@ * How many days we retain failed jobs

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RETENTION_QUEUE_IDS_IN_DAYS = exports.RETENTION_FAILED_JOBS_IN_DAYS = exports.RETENTION_COMPLETED_JOBS_IN_DAYS = void 0;
exports.RETENTION_QUEUE_IDS_IN_DAYS = exports.RETENTION_FAILED_JOBS_IN_DAYS = exports.RETENTION_COMPLETED_JOBS_IN_AMOUNT = void 0;
/**
* How many days we retain completed jobs
*/
exports.RETENTION_COMPLETED_JOBS_IN_DAYS = 3;
exports.RETENTION_COMPLETED_JOBS_IN_AMOUNT = 50;
/**

@@ -9,0 +9,0 @@ * How many days we retain failed jobs

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

* exponential strategy https://docs.bullmq.io/guide/retrying-failing-jobs#built-in-backoff-strategies
* - Job retention: 3 days for completed jobs, 7 days for failed jobs
* - Job retention: 50 last completed jobs, 7 days for failed jobs
*/

@@ -28,3 +28,3 @@ const DEFAULT_JOB_CONFIG = {

removeOnComplete: {
age: (0, utils_1.daysToSeconds)(constants_1.RETENTION_COMPLETED_JOBS_IN_DAYS),
count: (0, utils_1.daysToSeconds)(constants_1.RETENTION_COMPLETED_JOBS_IN_AMOUNT),
},

@@ -31,0 +31,0 @@ removeOnFail: {

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

export * from './background-job-processor';
export * from './background-job-processor/types';
export * from './background-job-processor/processors/AbstractBackgroundJobProcessor';
export * from './background-job-processor/processors/FakeBackgroundJobProcessor';
export * from './background-job-processor/processors/spy/types';
export * from './background-job-processor/processors/factories/CommonBullmqFactory';
export * from './background-job-processor/processors/factories/AbstractBullmqFactory';
export * from './background-job-processor/utils';
export * from './background-job-processor/constants';
export * from './background-job-processor/BackgroundJobProcessorLogger';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./background-job-processor"), exports);
tslib_1.__exportStar(require("./background-job-processor/types"), exports);
tslib_1.__exportStar(require("./background-job-processor/processors/AbstractBackgroundJobProcessor"), exports);
tslib_1.__exportStar(require("./background-job-processor/processors/FakeBackgroundJobProcessor"), exports);
tslib_1.__exportStar(require("./background-job-processor/processors/spy/types"), exports);
tslib_1.__exportStar(require("./background-job-processor/processors/factories/CommonBullmqFactory"), exports);
tslib_1.__exportStar(require("./background-job-processor/processors/factories/AbstractBullmqFactory"), exports);
tslib_1.__exportStar(require("./background-job-processor/utils"), exports);
tslib_1.__exportStar(require("./background-job-processor/constants"), exports);
tslib_1.__exportStar(require("./background-job-processor/BackgroundJobProcessorLogger"), exports);
{
"name": "@lokalise/background-jobs-common",
"version": "1.1.0",
"version": "1.1.1",
"files": [

@@ -38,8 +38,8 @@ "dist",

"@lokalise/id-utils": "1.0.0",
"@lokalise/node-core": "^9.12.0",
"pino": "^8.19.0",
"@lokalise/node-core": "^9.13.0",
"pino": "^8.20.0",
"ts-deepmerge": "^7.0.0"
},
"peerDependencies": {
"bullmq": "^5.4.2"
"bullmq": "^5.4.6"
},

@@ -52,4 +52,4 @@ "devDependencies": {

"@lokalise/package-vite-config": "latest",
"@vitest/coverage-v8": "^1.4.0",
"bullmq": "^5.4.2",
"@vitest/coverage-v8": "^1.5.0",
"bullmq": "^5.4.6",
"ioredis": "^5.3.2",

@@ -56,0 +56,0 @@ "prettier": "3.2.5",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc