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

lib-task-scheduler

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-task-scheduler - npm Package Compare versions

Comparing version 5.0.133 to 5.0.140

3

dist/src/index.js

@@ -123,4 +123,3 @@ "use strict";

else {
this.log.info(`Rescheduling task ${config.name} to now + ${relativeMs}ms.`);
taskSchedule.nextExecutionEpochMs = nextExecutionEpochMs;
throw new Error(`A task with a duplicate name (${config.name}) has already been scheduled`);
}

@@ -127,0 +126,0 @@ this.scheduleNext();

@@ -57,2 +57,12 @@ "use strict";

}));
it(`Fails when a duplicate task is scheduled`, () => __awaiter(this, void 0, void 0, function* () {
scheduler.schedule(task, taskConfig);
try {
scheduler.schedule(task, taskConfig);
}
catch (e) {
return;
}
expect.fail('Expected an error');
}));
it(`only executes one task at a time when tasks are long-running`, () => __awaiter(this, void 0, void 0, function* () {

@@ -59,0 +69,0 @@ let taskCompletedOnce = false;

{
"name": "lib-task-scheduler",
"version": "5.0.133",
"version": "5.0.140",
"description": "A lightweight, modular task scheduler.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/convoyinc/lib-task-scheduler",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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