Skip to Content
🔥 New in 1.12: streak challenges and custom badge art. Read the release notes

Scheduled Jobs

Configure automated background tasks for Novigem.

Access these settings via Novigem Admin > Settings > Scheduled Jobs.

Nightly Maintenance

One scheduled job, Novigem Daily Job, shown on the Nightly Maintenance card, runs up to five batches in order.

OrderBatchRuns when
1Recurring challenge resetAlways
2Insights and coaching signalsOnly when Enable Rule Engine is on
3Streak milestonesOnly when Enable Rule Engine is on and streakMilestonePoints is above 0
4Streak challengesOnly when Enable Rule Engine is on and a streak challenge is Active
5Battle resolutionOnly when Enable Rule Engine is on

Recurring challenge reset resets progress for recurring challenges (weekly, monthly, quarterly) when the current period ends, and creates new progress records for the next period.

Insights and coaching signals compares each user’s recent activity against the insights thresholds and writes coaching signals for Team Pulse and the rep coaching feed.

Streak milestones awards the bonus configured in streakMilestonePoints at 3, 7, 14, 30, 60, and 100 consecutive active days.

Streak challenges sets a streak challenge back to 0 for anyone who missed a day or week. A missed day earns no points, so nothing else notices it. It also fills in streak progress that was skipped during a very large data import. Days are worked out in the time zone of the user who scheduled the job.

Battle resolution ends head-to-head battles whose end date has passed and declares the outcome: a winner, a draw, or void when a side has no active members left. Winners get the battle’s completion badge and bonus points, and a Battle Won Chatter post if that notification is on. On a daily schedule, a battle resolves within about a day of its end date.

Until this job is scheduled, no coaching signals are ever generated, battles never end, and streak challenges never reset after a missed day. Team Pulse and the rep coaching feed stay empty. Schedule it as part of setup.

The job runs as the user who scheduled it. The coaching signal batch runs in user mode, so that user needs the Novigem Admin permission set. Scheduling also requires it: the screen refuses anyone without Novigem Admin access.

Job Status

FieldDescription
StatusWhether the job is scheduled (Active, Not Scheduled).
Next RunScheduled time for the next execution.
Last RunDate and time of the most recent execution, or Never.
Last StatusResult of the last run, as reported by Salesforce (for example Completed or Failed).

The card also shows processing details, such as “4/4 challenges processed, 0 errors”.

These fields report the recurring challenge reset batch only. To check the other four, open Setup > Apex Jobs and look for InsightsBatch, StreakMilestoneBatch, StreakChallengeBatch, and BattleResolutionBatch.

Schedule Configuration

Enter a cron expression to define when the job runs. Default is daily at 1:00 AM.

SettingDescription
Cron ExpressionStandard cron format defining the schedule.

Common Expressions

ExpressionSchedule
0 0 1 * * ?Daily at 1:00 AM
0 0 0 * * ?Daily at midnight
0 0 6 ? * MON-FRIWeekdays at 6:00 AM
0 0 2 ? * SUNSundays at 2:00 AM

Actions

ButtonDescription
ScheduleSave the cron expression and enable the scheduled job.
RescheduleApply a changed cron expression to the job that is already scheduled.
UnscheduleStop the job. Nothing runs again until you schedule it.
Run NowRun the full nightly job once, immediately: the same five batches and the same kill-switch gates as a scheduled run.

Run Now works whether or not the job is scheduled. It does not change the schedule.

Best Practices

  • Schedule the job during setup. Coaching signals, battle results, and streak resets depend on it and nothing produces them before then.
  • If you run daily streak challenges, schedule the job every day, weekends included. A weekday-only schedule picks up a missed Saturday on Monday.
  • Schedule it as a user who holds the Novigem Admin permission set, and keep that user active.
  • Schedule jobs during off-peak hours to minimize impact
  • Use Run Now to check the job before relying on the schedule
  • Monitor job status regularly to catch failures early
  • For recurring challenges, ensure the job runs before the new period starts
  • After changing the cron expression on a scheduled job, click Reschedule so the new time takes effect

Next steps

Last updated on