Decorators

@system-inc/base-foundation · 515c140 · 1 symbols

This decorator is used to register an Executable that can be called on a scheduled basis.

If no cron expression is provided the class is decorator-marked but is not registered with the ScheduledRunner — it will not auto-run on any trigger. Modules that wire the executable up later with a config-supplied cron should use this form. To opt into running on every trigger the worker receives, pass CRON_ANY_TRIGGER explicitly.

ScheduledExecutable(cron?: string): (constructor: T) => void

View source ↗