Skip to content

Commit

Permalink
run reDispatchBroadcastPushNotifications every 2 min
Browse files Browse the repository at this point in the history
  • Loading branch information
f-w committed Jan 28, 2024
1 parent bf9ad82 commit 0095cc8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ npm-debug.log
*.tsbuildinfo
**/*.local.*
/docs/
/server/database/data.json
/server/certs
/chart
/.github/
/.vscode/
/helm
notifyBC.code-workspace
/coverage/
windows-service.js
Binary file modified .github/values.ocp4.dev.yaml.gpg
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notify-bc",
"version": "5.0.11",
"version": "5.0.12",
"dbSchemaVersion": "0.9.0",
"description": "A versatile notification API server",
"author": "f-w",
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ const config: Record<string, any> = {
minLapsedHoursSinceLatestNotificationEnded: 1,
},
reDispatchBroadcastPushNotifications: {
// minutely
timeSpec: '0 * * * * *',
// every 2 minutes
timeSpec: '0 */2 * * * *',
},
clearRedisDatastore: {
// hourly
Expand Down
1 change: 0 additions & 1 deletion src/observers/cron-tasks.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,6 @@ export class CronTasksService {
staleBroadcastPushNotifications.map(
async (staleBroadcastPushNotification) => {
staleBroadcastPushNotification.asyncBroadcastPushNotification =
staleBroadcastPushNotification.asyncBroadcastPushNotification ||
true;
const httpHost =
this.appConfigService.get('internalHttpHost') ??
Expand Down

0 comments on commit 0095cc8

Please sign in to comment.