Skip to content

Commit

Permalink
Refactor the code
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 9, 2023
1 parent e2e9bf3 commit cf82d7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions workflows/active_view_refresher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ const workflow = DefineWorkflow({
input_parameters: { properties: {}, required: [] },
});

const timesPerHour = 2;
for (let i = 0; i < timesPerHour * 24; i++) {
const executionsPerHour = 2;
const delayMinutes = 60 / executionsPerHour;
for (let i = 0; i < executionsPerHour * 24; i++) {
workflow.addStep(RefreshMainViews, {});
workflow.addStep(Schema.slack.functions.Delay, {
minutes_to_delay: 60 / timesPerHour,
minutes_to_delay: delayMinutes,
});
}

Expand Down

0 comments on commit cf82d7f

Please sign in to comment.