Skip to content

Commit

Permalink
Merge pull request #873 from dcSpark/nico/fix_endless_msg_error
Browse files Browse the repository at this point in the history
fix endless msg error
  • Loading branch information
nicarq authored Feb 16, 2025
2 parents 8361ff2 + 5ac862d commit 56b2313
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions shinkai-bin/shinkai-node/src/llm_provider/job_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,7 @@ impl JobManager {
)
.await;

if result.is_ok() {
let _ = queue_immediate.lock().await.dequeue(&job_id).await;
}
let _ = queue_immediate.lock().await.dequeue(&job_id).await;
let mut inprog = in_progress.lock().await;
inprog.remove(&job_id);
drop(permit);
Expand Down Expand Up @@ -390,9 +388,7 @@ impl JobManager {
)
.await;

if result.is_ok() {
let _ = queue_normal.lock().await.dequeue(&job_id).await;
}
let _ = queue_normal.lock().await.dequeue(&job_id).await;
let mut inprog = in_progress.lock().await;
inprog.remove(&job_id);
drop(permit);
Expand Down Expand Up @@ -446,9 +442,7 @@ impl JobManager {
)
.await;

if result.is_ok() {
let _ = queue_immediate.lock().await.dequeue(&imm_id).await;
}
let _ = queue_immediate.lock().await.dequeue(&imm_id).await;
let mut inprog = in_progress.lock().await;
inprog.remove(&imm_id);
drop(permit);
Expand Down

0 comments on commit 56b2313

Please sign in to comment.