Skip to content

SCHED_ProcessLoginHistory

Class · Group: Schedulables

apex
global inherited sharing class SCHED_ProcessLoginHistory implements Schedulable

Implements: Schedulable

Scheduled job that runs daily to process login history data. Launches PROC_LoginFrequencyAggregator via the adaptive async framework using Batch Apex. Batch is required because finish() updates ScheduleSetting__c (a setup object), which must run in a separate transaction from execute()'s LoginFrequency__c DML to avoid MIXED_DML_OPERATION.

Since: 1.0

Example:

apex
System.schedule('Daily Login History', '0 0 2 * * ?', new SCHED_ProcessLoginHistory());

Methods

MethodDescription
global void execute(SchedulableContext context)Executes the scheduled Apex job to process login history data.

Method Details

execute

apex
global void execute(SchedulableContext context)

Executes the scheduled Apex job to process login history data. Reads the watermark from ScheduleSetting__c, builds the LoginHistory query, and dispatches processing via the adaptive async framework.

Parameters:

Since: 1.0

Example:

apex
System.schedule('Daily Login History Processing', '0 0 2 * * ?', new SCHED_ProcessLoginHistory());