The schedule job throws a task error

This commit is contained in:
Matt Aitken
2023-06-09 11:41:58 +01:00
parent cfe887341d
commit a85f19e016
+10
View File
@@ -289,6 +289,16 @@ new Job(client, {
);
}
);
await io.runTask(
"Fingers crossed",
{
name: "Just a task 🤞",
},
async () => {
throw new Error("You messed up buddy!");
}
);
},
});