We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5866140 commit baf4e35Copy full SHA for baf4e35
application/lib/metacomTest/start.js
application/lib/task1/start.js
@@ -1,13 +1,11 @@
1
async () => {
2
if (!config.examples.scheduler) return;
3
if (application.worker.id !== 'W1') return;
4
- setTimeout(async () => {
5
- const res = await application.scheduler.add({
6
- name: 'name',
7
- every: 'Sep 10th 10s',
8
- args: { i: 2 },
9
- run: 'lib.task1.f1',
10
- });
11
- console.log('Add task', res);
12
- }, 1000);
+ const res = await application.scheduler.add({
+ name: 'name',
+ every: 'Oct 19th 10s',
+ args: { i: 2 },
+ run: 'lib.task1.f1',
+ });
+ console.log('Add task', res);
13
};
0 commit comments