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

adonisjs-scheduler

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonisjs-scheduler - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

17

build/commands/SchedulerCommand.js

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

if (lock.isBusy(options.key)) {
console.log(`${options.key} is busy`);
if (options.onBusy) {
await options.onBusy();
}
return;

@@ -25,2 +27,3 @@ }

const Ace = this.application.container.use('Adonis/Core/Ace');
const Logger = this.application.container.use('Adonis/Core/Logger');
for (let index = 0; index < Scheduler.items.length; index++) {

@@ -34,3 +37,6 @@ const command = Scheduler.items[index];

timeout: command.config.expiresAt,
key: `${index}-${command.commandName}-${command.commandArgs}`
key: `${index}-${command.commandName}-${command.commandArgs}`,
onBusy: () => {
Logger.warn(`Command ${index}-${command.commandName}-${command.commandArgs} is busy`);
}
});

@@ -42,3 +48,6 @@ break;

timeout: command.config.expiresAt,
key: `${index}-callback`
key: `${index}-callback`,
onBusy: () => {
Logger.warn(`Callback ${index} is busy`);
}
});

@@ -53,3 +62,3 @@ default:

}
this.logger.info(`Schedule worker started successfully.`);
Logger.info(`Schedule worker started successfully.`);
}

@@ -56,0 +65,0 @@ }

{
"name": "adonisjs-scheduler",
"version": "0.0.24",
"version": "0.0.25",
"description": "Task scheduler for AdonisJS",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/KABBOUCHI/adonisjs-scheduler#readme",

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