Service Layer medium complexity backend
1
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

Manages scheduled and on-demand export job lifecycle for accounting integrations. Reads per-organisation export schedules, enqueues export jobs at the configured times, and ensures no duplicate jobs are triggered concurrently for the same organisation.

Feature: Accounting API

accounting-export-scheduler

Responsibilities

  • Persist and retrieve per-organisation export schedule configurations
  • Enqueue export jobs according to configured cron schedules
  • Prevent concurrent duplicate export jobs for the same organisation
  • Notify the Accounting API Service when a scheduled export is triggered

Interfaces

upsertSchedule(orgId: string, schedule: ExportSchedule): void
deleteSchedule(orgId: string): void
getSchedule(orgId: string): ExportSchedule
triggerScheduledExport(orgId: string): void
listActiveSchedules(): ExportSchedule[]

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (2)

Data entities managed by this component