From 2daf9fc3abb78f0261bc8e52791a525c1b2ccdf0 Mon Sep 17 00:00:00 2001 From: FTCHD <144691102+FTCHD@users.noreply.github.com> Date: Sun, 17 Aug 2025 01:46:56 +0200 Subject: [PATCH] notify on started task Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com> --- main.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.ts b/main.ts index 4c5b12e..ac09640 100644 --- a/main.ts +++ b/main.ts @@ -7,6 +7,7 @@ import { exit, relaunch } from '@tauri-apps/plugin-process' import { check } from '@tauri-apps/plugin-updater' import { CronExpressionParser } from 'cron-parser' import { validateLicense } from './lib/license' +import notify from './lib/notify' import { listRemotes, mountRemote, @@ -274,6 +275,10 @@ async function resumeTasks() { if (difference <= MAX_INT_MS && difference > 0) { setTimeout(() => { console.log('running task', task) + notify({ + title: 'Task Started', + body: `Task ${task.type} (${task.id}) started`, + }) handleTask(task) }, difference) console.log('scheduled task', task.type, task.id, nextRun)