Loading
Slack 관련 문의처가 Salesforce Help로 통합 및 변경됩니다.더 많이 읽기

Field Service: VRAStatisticCalculationJob Exhausting Org Scheduled Job Limit

게시 일자: Oct 16, 2026
상세 설명

Visual Remote Assistant (VRA) uses a background job, VRAStatisticCalculationJob, to calculate statistics for VRA reports (averages and potentials for completed sessions and active agents). By default it reschedules itself to run 1 hour after each agent completes a VRA session, so every agent completion adds a separate job entry. In orgs with many active agents these entries accumulate and can consume a large share of the org's 100 concurrent scheduled Apex job slots, starving other critical scheduled jobs.

Symptoms

  • Critical scheduled Apex jobs fail to run or sit in a BLOCKED state.
  • Setup > Scheduled Jobs shows many VRAStatisticCalculationJob entries, each tied to a different agent and scheduled time.
  • A CronTrigger count filtered to active states (WAITING, ACQUIRED, EXECUTING, PAUSED, BLOCKED) sits at or near 100.
  • The number of VRAStatisticCalculationJob entries grows with the number of agents completing sessions.

The Scheduled Jobs UI usually shows more VRAStatisticCalculationJob rows than the SOQL count. That is expected — the UI includes COMPLETE entries that Salesforce retains temporarily and that do not consume a slot.

Cause

Salesforce enforces a hard limit of 100 concurrent scheduled Apex jobs per org (jobs in state WAITING, ACQUIRED, EXECUTING, PAUSED, or BLOCKED). It cannot be raised.

VRAStatisticCalculationJob is driven by the StatsAsyncJobDelay setting in the Visual Remote Assistant - Invite Form custom setting (tspa__InviteTechSeeConfig__c), default 1 (hour). Each session completion schedules the job 1 hour out, unless one is already scheduled for that agent in the same hour window. Across many agents this generates a high volume of distinct entries that, combined with the org's other scheduled jobs, can reach the 100-job limit and block new schedules.

 

솔루션

1. Immediate relief (if already at the limit)

If critical jobs are already blocked, delete active VRAStatisticCalculationJob entries to free slots:

  1. Setup > Quick Find > Scheduled Jobs.
  2. Find VRAStatisticCalculationJob entries in an active state (WAITING, EXECUTING, etc.).
  3. Delete them.

This clears the current cycle only — new jobs reschedule at the original interval until you complete step 2.

2. Reduce job frequency via StatsAsyncJobDelay

  1. Setup > Quick Find > Custom Settings.
  2. Open Visual Remote Assistant - Invite Form (tspa__InviteTechSeeConfig__c) > Manage.
  3. Open the record where Name = StatsAsyncJobDelay.
  4. Change Value__c from 1 to 4–6 (hours). A value of 6 cuts scheduled-entry volume ~6x versus the default; pick the interval based on how current your VRA stats need to be.
  5. Save.

The change applies to all new session completions immediately.

3. Verify

Run this in Developer Console or Workbench and confirm the active-state VRAStatisticCalculationJob count has dropped:

SELECT CronJobDetail.Name, State, COUNT(Id)
  FROM CronTrigger
  WHERE CronJobDetail.JobType = '7'
  GROUP BY CronJobDetail.Name, State
  ORDER BY COUNT(Id) DESC

Rows in WAITING, ACQUIRED, EXECUTING, PAUSED, or BLOCKED count against the 100-job limit; COMPLETE rows do not and clear automatically within ~10 days.

Known Limitations

  • The 100 concurrent scheduled Apex job limit is a hard platform limit — it cannot be raised by config, support, or override.
  • StatsAsyncJobDelay reduces frequency but doesn't eliminate the job; at least one VRAStatisticCalculationJob slot stays occupied while VRA is active.
  • COMPLETE entries linger in the Scheduled Jobs UI for up to 10 days before cleanup but don't consume a slot.
  • If the org runs many other scheduled Apex jobs, consider consolidating them or moving some to Scheduled Flows, Queueables, or Platform Events, which don't count against the CronTrigger limit.
Knowledge 기사 번호

005393583

 
로드 중
Salesforce Help | Article