From 6668b6e2fcc51338d84854fc94cc4efdfdfd2a7a Mon Sep 17 00:00:00 2001 From: Jussi Hallila Date: Mon, 3 Jan 2022 13:06:59 +0100 Subject: [PATCH 1/2] Modify tech insights default cadence to be less eager. Signed-off-by: Jussi Hallila --- packages/backend/src/plugins/techInsights.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/plugins/techInsights.ts b/packages/backend/src/plugins/techInsights.ts index 8ab6342a4f..ec7421c65d 100644 --- a/packages/backend/src/plugins/techInsights.ts +++ b/packages/backend/src/plugins/techInsights.ts @@ -41,11 +41,11 @@ export default async function createPlugin({ discovery, factRetrievers: [ createFactRetrieverRegistration( - '* * * * *', // Example cron, every minute + '1 * 1 1 *', // Example cron, At minute 1 on day-of-month 1 in January. entityOwnershipFactRetriever, ), - createFactRetrieverRegistration('* * * * *', entityMetadataFactRetriever), - createFactRetrieverRegistration('* * * * *', techdocsFactRetriever), + createFactRetrieverRegistration('1 * 1 1 *', entityMetadataFactRetriever), + createFactRetrieverRegistration('1 * 1 1 *', techdocsFactRetriever), ], factCheckerFactory: new JsonRulesEngineFactCheckerFactory({ checks: [ From 8dafbbb8b8df819999cde54fe14f1610616b76ab Mon Sep 17 00:00:00 2001 From: Jussi Hallila Date: Mon, 3 Jan 2022 15:15:54 +0100 Subject: [PATCH 2/2] Swap default example cadence to once a month Signed-off-by: Jussi Hallila --- packages/backend/src/plugins/techInsights.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/plugins/techInsights.ts b/packages/backend/src/plugins/techInsights.ts index ec7421c65d..a05ddc339a 100644 --- a/packages/backend/src/plugins/techInsights.ts +++ b/packages/backend/src/plugins/techInsights.ts @@ -41,11 +41,11 @@ export default async function createPlugin({ discovery, factRetrievers: [ createFactRetrieverRegistration( - '1 * 1 1 *', // Example cron, At minute 1 on day-of-month 1 in January. + '1 1 1 * *', // Example cron, At 01:01 on day-of-month 1. entityOwnershipFactRetriever, ), - createFactRetrieverRegistration('1 * 1 1 *', entityMetadataFactRetriever), - createFactRetrieverRegistration('1 * 1 1 *', techdocsFactRetriever), + createFactRetrieverRegistration('1 1 1 * *', entityMetadataFactRetriever), + createFactRetrieverRegistration('1 1 1 * *', techdocsFactRetriever), ], factCheckerFactory: new JsonRulesEngineFactCheckerFactory({ checks: [