fix: finalize failed batch enqueue atomically

This commit is contained in:
237899745
2026-07-26 06:46:29 +08:00
parent 380e89b058
commit 4d0e8aa70a
4 changed files with 361 additions and 43 deletions

View File

@@ -703,12 +703,12 @@ struct TaskContext {
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
enum TaskProcessOutcome {
pub(crate) enum TaskProcessOutcome {
Done,
LeaseBusy,
}
async fn process_task(
pub(crate) async fn process_task(
state: &AppState,
task_id: Uuid,
worker_id: Uuid,