Skip to content

Commit

Permalink
expired jobs already deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
HEM42 committed May 7, 2024
1 parent c4693ca commit 27aefba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/Minion/Backend/Pg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,6 @@ sub repair {
)", $minion->remove_after
);

# Expired jobs
$db->query("DELETE FROM minion_jobs WHERE state = 'inactive' AND expires <= NOW()");

# Jobs with missing worker (can be retried)
$db->query(
"SELECT id, retries FROM minion_jobs AS j
Expand Down

0 comments on commit 27aefba

Please sign in to comment.