Skip to content

Commit ded4d99

Browse files
committed
Add quota cooldown check to error handler, update .gitignore, and comment out unused queue pruning schedule.
1 parent b325d9e commit ded4d99

3 files changed

Lines changed: 9 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,6 @@ laradumps.yaml
5656

5757
/.ai/
5858
/generate-env
59+
/.ai/
60+
/.github/
61+
/.vscode/

app/Console/Commands/ListenerPanoptesPusherCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,11 @@ private function trackError(?string $details = null): void
607607
*/
608608
private function handleError(string $message, ?\Throwable $e = null, array $context = []): void
609609
{
610+
// Don't process or email if we're in a quota cooldown
611+
if (Cache::has('panoptes_listener_quota_cooldown')) {
612+
return;
613+
}
614+
610615
$details = $message.($e ? ": {$e->getMessage()}" : '');
611616
$this->trackError($details);
612617

routes/console.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Schedule::command('export:queue')->everyTwoMinutes();
2929
Schedule::command('tesseract:ocr-process')->everyTwoMinutes();
3030
Schedule::command('cache:prune-stale-tags')->hourly();
31-
Schedule::command('queue:prune-batches --hours=48 --unfinished=72')->daily();
31+
// Schedule::command('queue:prune-batches --hours=48 --unfinished=72')->daily();
3232

3333
// Clean bingo maps
3434
Schedule::command('bingo:clean')->dailyAt('10:05');

0 commit comments

Comments
 (0)