Skip to content

Commit 422f301

Browse files
feat(data-access): add yearly job interval (#1380)
## Summary - Adds `YEARLY: 'yearly'` to the `JOB_INTERVALS` enum in the Configuration model - Needed to support yearly-cadence audit types (e.g., `commerce-product-enrichments-yearly` for full sitemap-based product page discovery) ## Related - [Story: AGENTCOM-388](https://jira.corp.adobe.com/browse/AGENTCOM-388) ## Test plan - No test changes required — existing tests validate interval logic generically using `'weekly'`/`'daily'`/`'monthly'` and test the error path with `'invalid-interval'`
1 parent 7491791 commit 422f301

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/spacecat-shared-data-access/src/models/configuration/configuration.model.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class Configuration {
4949
FORTNIGHTLY_SUNDAY: 'fortnightly-sunday',
5050
MONTHLY: 'monthly',
5151
QUARTERLY: 'quarterly',
52+
YEARLY: 'yearly',
5253
// Staggered weekly slots for split audits (e.g. geo-brand-presence-free-1..23)
5354
...Object.fromEntries(
5455
Array.from({ length: 23 }, (_, i) => [`WEEKLY_SLOT_${i + 1}`, `weekly-slot-${i + 1}`]),

0 commit comments

Comments
 (0)