-
-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Description
when i use mysql backend, i found something is error;
Monitor::new()
.register({
WorkerBuilder::new("auto_build_task")
.enable_tracing()
.backend(auto_build_storage.clone())
.build_fn(auto_build_task)
})
.register({
WorkerBuilder::new("check_auto_build_task")
.enable_tracing()
.backend(auto_build_check_storage.clone())
.build_fn(check_auto_build_task)
})
.run()
.await?;
async fn check_auto_build_task(req: CheckHandleAutoBuildTaskResult) -> Result<(), Error> {
let result = handle_build_call_back(&req.data.auto_build_id, false).await;
match result {
Ok(_) => {
log_serialize!("success", req);
Ok(())
}
Err(e) => {
log_serialize!("fail: {}", e);
let err: BoxDynError = e.into();
Err(err.into())
}
}
}
when i return Ok(()) or Err,they will retry 5 times, i dont konwn why ?
Metadata
Metadata
Assignees
Labels
No labels