Skip to content

Commit

Permalink
Add keep_alive() call when an error occurs in fetch_next(), to preven…
Browse files Browse the repository at this point in the history
…t permanent failure when redis restarts
  • Loading branch information
zakstucke committed Jan 5, 2025
1 parent ea4c1da commit f86282d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/apalis-redis/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,7 @@ where
}
Err(e) => {
warn!("An error occurred during streaming jobs: {e}");
self.keep_alive(worker_id).await?;
Err(e)
}
}
Expand Down

0 comments on commit f86282d

Please sign in to comment.