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 4.0.111 to 4.0.112

7

dist/src/index.js

@@ -102,10 +102,11 @@ "use strict";

const nextExecutionEpochMs = this.calculateNextExecutionEpochMs(config);
const relativeMs = nextExecutionEpochMs - _.now(); // for logging, includes jitter randomness
let taskSchedule = _.find(this.schedules, e => e.config.name === config.name);
if (!taskSchedule) {
taskSchedule = { task, config, nextExecutionEpochMs };
this.log.info(`Scheduling new task ${config.name} to now + ${config.intervalMs}ms.`);
this.log.info(`Scheduling new task ${config.name} to now + ${relativeMs}ms.`);
this.schedules.push(taskSchedule);
}
else {
this.log.info(`Rescheduling task ${config.name} to now + ${config.intervalMs}ms.`);
this.log.info(`Rescheduling task ${config.name} to now + ${relativeMs}ms.`);
taskSchedule.nextExecutionEpochMs = nextExecutionEpochMs;

@@ -183,3 +184,3 @@ }

this.log.error(`Promise for ${schedule.config.name} is still pending (skipping this execution;` +
` delaying ${schedule.config.intervalMs}ms).`);
` delaying ${schedule.config.intervalMs}ms + jitter).`);
return;

@@ -186,0 +187,0 @@ }

{
"name": "lib-task-scheduler",
"version": "4.0.111",
"version": "4.0.112",
"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

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