fix(core): update
This commit is contained in:
parent
2cf32ac723
commit
6f811b4ab5
@ -200,6 +200,7 @@ export class Task {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* trigger task unbuffered.
|
* trigger task unbuffered.
|
||||||
|
* will actually run the task, not considering any buffered limits.
|
||||||
*/
|
*/
|
||||||
public triggerUnBuffered(x?): Promise<any> {
|
public triggerUnBuffered(x?): Promise<any> {
|
||||||
return Task.runTask(this, { x: x });
|
return Task.runTask(this, { x: x });
|
||||||
@ -207,6 +208,7 @@ export class Task {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* trigger task buffered.
|
* trigger task buffered.
|
||||||
|
* will simply call task.trigger(), which respects buffering by default
|
||||||
*/
|
*/
|
||||||
public triggerBuffered(x?): Promise<any> {
|
public triggerBuffered(x?): Promise<any> {
|
||||||
return this.bufferRunner.trigger(x);
|
return this.bufferRunner.trigger(x);
|
||||||
|
@ -44,8 +44,7 @@ export class TaskManager {
|
|||||||
*/
|
*/
|
||||||
public addAndScheduleTask(taskArg: Task, cronStringArg: string) {
|
public addAndScheduleTask(taskArg: Task, cronStringArg: string) {
|
||||||
this.addTask(taskArg);
|
this.addTask(taskArg);
|
||||||
const taskName = taskArg.name;
|
this.scheduleTaskByName(taskArg.name, cronStringArg);
|
||||||
this.scheduleTaskByName(taskName, cronStringArg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user