Skip to content

Commit 57c05b6

Browse files
committed
fix: update schedule name and change limit
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent a42f1a5 commit 57c05b6

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

services/apps/automatic_onboarding_worker/src/schedules/scheduleProjectsOnboarding.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import { svc } from '../main'
44
import { IOnboardProjectsInput, onboardProjects } from '../workflows'
55

66
const ONBOARDING_ARGS: IOnboardProjectsInput = {
7-
batchSize: 50,
7+
batchSize: 20,
88
}
99

1010
export const scheduleProjectsOnboarding = async () => {
1111
svc.log.info('Scheduling projects onboarding')
1212

1313
try {
1414
await svc.temporal.schedule.create({
15-
scheduleId: 'projectsOnboarding',
15+
scheduleId: 'automaticOnboarding',
1616
spec: {
1717
// Daily: catches up on whatever landed in 'onboard' state, independent of the evaluation schedule's timing.
1818
cronExpressions: ['0 8 * * *'],
@@ -26,7 +26,7 @@ export const scheduleProjectsOnboarding = async () => {
2626
workflowType: onboardProjects,
2727
taskQueue: 'automatic-onboarding',
2828
args: [ONBOARDING_ARGS],
29-
workflowExecutionTimeout: '14 hours',
29+
workflowExecutionTimeout: '6 hours',
3030
retry: {
3131
initialInterval: '30 seconds',
3232
backoffCoefficient: 2,

services/apps/automatic_onboarding_worker/src/workflows/onboardProjects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const failureActivities = proxyActivities<typeof activities>({
2222
})
2323

2424
export async function onboardProjects(input: IOnboardProjectsInput = {}): Promise<void> {
25-
const { batchSize = 50 } = input
25+
const { batchSize = 20 } = input
2626

2727
log.info('onboardProjects workflow started.')
2828

0 commit comments

Comments
 (0)