Skip to content

Commit

Permalink
Fix reenqueue_active
Browse files Browse the repository at this point in the history
It now needs WorkerId to work
  • Loading branch information
Antti committed Feb 6, 2025
1 parent 7bc73ec commit 09618f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/apalis-redis/src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,9 +928,9 @@ where
}

/// Re-enqueue some jobs that might be abandoned.
pub async fn reenqueue_active(&mut self, job_ids: Vec<&TaskId>) -> Result<(), RedisError> {
pub async fn reenqueue_active(&mut self, worker_id: &WorkerId, job_ids: Vec<&TaskId>) -> Result<(), RedisError> {
let reenqueue_active = self.scripts.reenqueue_active.clone();
let inflight_set: String = todo!("get inflight set");//self.config.inflight_jobs_set().to_string();
let inflight_set: String = self.config.inflight_jobs_set(worker_id);
let active_jobs_list = self.config.active_jobs_list();
let signal_list = self.config.signal_list();

Expand Down

0 comments on commit 09618f9

Please sign in to comment.