- add isync to setup.sh - ask for gmail address alongside app password in integrations - add PermanentError to job queue (skips retries for non-recoverable failures) - use PermanentError for missing credentials, missing executable, auth failures - auto-add /email to dock after successful gmail sync - invalidate dock cache on sync completion for seamless UI update Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
587 B
TypeScript
25 lines
587 B
TypeScript
import { ensureQueueDir } from './storage';
|
|
import { resumeInterruptedJobs } from './engine';
|
|
import './handlers';
|
|
|
|
export { enqueue, cancelJob } from './engine';
|
|
export { readJob, listAllJobs } from './storage';
|
|
export { registerHandler } from './handler-registry';
|
|
export { PermanentError } from './types';
|
|
export type {
|
|
Job,
|
|
JobStep,
|
|
JobStatus,
|
|
JobProgress,
|
|
StepContext,
|
|
JobHandler,
|
|
JobHandlerStep,
|
|
EnqueueParams,
|
|
} from './types';
|
|
|
|
export async function initQueue() {
|
|
await ensureQueueDir();
|
|
await resumeInterruptedJobs();
|
|
console.log('[queue] Initialized');
|
|
}
|