Continuous sync (#320)

* Continuous sync

* Mobile dep upgrade
This commit is contained in:
Zef Hemel
2023-01-20 16:08:01 +01:00
committed by GitHub
parent 3fb393baf3
commit 2577a2db32
17 changed files with 416 additions and 224 deletions
@@ -7,7 +7,7 @@ export type CronHookT = {
cron?: string | string[];
};
export class DenoCronHook implements Hook<CronHookT> {
export class CronHook implements Hook<CronHookT> {
apply(system: System<CronHookT>): void {
let tasks: Cron[] = [];
system.on({
@@ -42,7 +42,7 @@ export class DenoCronHook implements Hook<CronHookT> {
for (const cronDef of crons) {
tasks.push(
new Cron(cronDef, () => {
console.log("Now acting on cron", cronDef);
// console.log("Now acting on cron", cronDef);
safeRun(async () => {
try {
await plug.invoke(name, [cronDef]);