Skip to content

Commit

Permalink
Improve SendReplyToCustomer background jobs monitoring - closes #3590
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Dec 12, 2023
1 parent f1839bc commit fbf4d3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/SendMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function handle()
// Get SendReplyToCustomer jobs.
$pending_jobs = \App\Job::where('queue', 'emails')
->where('payload', 'like', '{"displayName":"App\\\\\\\\Jobs\\\\\\\\SendReplyToCustomer"%')
->where('created_at', '<', time() - self::CHECK_PERIOD)
->where('available_at', '<', time() - self::CHECK_PERIOD)
->exists();

// Check failed_jobs.
Expand Down

0 comments on commit fbf4d3b

Please sign in to comment.