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

pg-scheduler

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-scheduler - npm Package Compare versions

Comparing version 4.0.0-beta4 to 4.0.0-beta5

3

dst/Scheduler.d.ts
/// <reference types="sequelize" />
/// <reference types="node" />
/// <reference types="bluebird" />
import { Options, Sequelize as SequelizeType } from 'sequelize';
import { Options, Sequelize as SequelizeType, Transaction } from 'sequelize';
import * as Bluebird from 'bluebird';

@@ -40,2 +40,3 @@ import { ProcessorsStorage } from './ProcessorsStorage';

repeatOnError?: boolean;
transaction?: Transaction;
}

@@ -42,0 +43,0 @@ export declare class Scheduler {

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

let nextRunAt = RunAt_1.RunAt.calcNextRunAt(interval);
const { startAt, endAt, concurrency, priority, timeout, now } = options;
const { startAt, endAt, concurrency, priority, timeout, now, transaction } = options;
if (now) {

@@ -82,3 +82,3 @@ nextRunAt = new Date();

timeout,
});
}, { transaction });
}

@@ -88,3 +88,3 @@ everyDayAt(runAtTime, taskName, data = {}, options = {}) {

let nextRunAt = RunAt_1.RunAt.calcNextRunAt(null, runAtTime);
const { startAt, endAt, concurrency, priority, timeout, now } = options;
const { startAt, endAt, concurrency, priority, timeout, now, transaction } = options;
if (now) {

@@ -103,3 +103,3 @@ nextRunAt = new Date();

timeout,
});
}, { transaction });
}

@@ -109,3 +109,3 @@ once(date, taskName, data = {}, options = {}) {

let nextRunAt = new Date(date instanceof Date ? date.getTime() : date);
const { startAt, endAt, concurrency, priority, timeout, now, repeatOnError } = options;
const { startAt, endAt, concurrency, priority, timeout, now, repeatOnError, transaction } = options;
if (now) {

@@ -124,3 +124,3 @@ nextRunAt = new Date();

repeatOnError,
});
}, { transaction });
}

@@ -127,0 +127,0 @@ get totalProcessedCount() {

{
"name": "pg-scheduler",
"version": "4.0.0-beta4",
"version": "4.0.0-beta5",
"scripts": {

@@ -5,0 +5,0 @@ "test": "NODE_ENV=testing mocha test/**/*.ts",

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