Socket
Book a DemoInstallSign in
Socket

gedyx-cron-manager

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gedyx-cron-manager

Cron manager for GEDYX framework

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

gedyx-cron-manager

Install

    npm i gedyx-cron-manager

Usage

You should also include gedyx-cron package

    npm i gedyx-cron

In your script

    const CronManager = require('gedyx-cron-manager');
    const cronJobsPool = new CronManager(dirname);

dirname is directory where your cron task stored(should export object of gedyx-cron). For example:

const CronJob = require('gedyx-cron');

class test extends CronJob {
    onTick() {
        console.log('test');
    }

    onComplete() {

    }
}

let obj = new test();
module.exports = obj;

Keywords

cron

FAQs

Package last updated on 08 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts