Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize tests and remove unneeded #256

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions application/lib/metacomTest/start.js

This file was deleted.

16 changes: 7 additions & 9 deletions application/lib/task1/start.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
async () => {
if (!config.examples.scheduler) return;
if (application.worker.id !== 'W1') return;
setTimeout(async () => {
const res = await application.scheduler.add({
name: 'name',
every: 'Sep 10th 10s',
args: { i: 2 },
run: 'lib.task1.f1',
});
console.log('Add task', res);
}, 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);
};
Loading