Documentation

ExecuteDueTasks
in package
implements ShouldQueue uses Dispatchable, InteractsWithQueue, Queueable, SerializesModels

Table of Contents

Interfaces

ShouldQueue

Properties

$rruleService  : RruleService

Methods

__construct()  : mixed
handle()  : void
Execute the job.
executeReminder()  : void
Execute a reminder task
executeReport()  : void
Execute a report task
executeResearch()  : void
Execute a research task
executeTask()  : void
Execute a single task Note: Task status is already set to 'running' in lockAndAcquireNextTask()
getSmsService()  : SmsService
Get SmsService instance
lockAndAcquireNextTask()  : AiAssistantTask|null
Lock and acquire the next due task atomically.

Properties

Methods

lockAndAcquireNextTask()

Lock and acquire the next due task atomically.

protected lockAndAcquireNextTask() : AiAssistantTask|null

Uses lockForUpdate() to ensure only one worker can process each task.

Return values
AiAssistantTask|null

        
On this page

Search results