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