Skip to content

Commit

Permalink
fix: add default 3scale schedule (#969)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Coufal <[email protected]>
  • Loading branch information
tumido authored Nov 22, 2023
1 parent c21b803 commit 11c10b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/3scale-backend/src/dynamic/alpha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ export const dynamicPluginInstaller: BackendDynamicPluginInstaller = {
ThreeScaleApiEntityProvider.fromConfig(config, {
logger: loggerToWinstonLogger(logger),
scheduler: scheduler,
schedule: scheduler.createScheduledTaskRunner({
frequency: { minutes: 1 },
timeout: { minutes: 1 },
}),
}),
);
},
Expand Down
4 changes: 4 additions & 0 deletions plugins/3scale-backend/src/dynamic/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ export const dynamicPluginInstaller: BackendDynamicPluginInstaller = {
ThreeScaleApiEntityProvider.fromConfig(env.config, {
logger: env.logger,
scheduler: env.scheduler,
schedule: env.scheduler.createScheduledTaskRunner({
frequency: { minutes: 1 },
timeout: { minutes: 1 },
}),
}),
);
},
Expand Down

0 comments on commit 11c10b0

Please sign in to comment.