Repository: TabbyML/tabby
File: ee/tabby-webserver/src/service/background_job/mod.rs (Rust)

Code before:
                                git_repository_service.clone(),
                                job_service.clone(),
                                integration_service.clone(),
                                third_party_repository_service.clone(),
                                repository_service.clone(),
                            ).await
                        }
                        BackgroundJobEvent::Daily => {
                            let job = DailyJob;
                            job.run(
                                license_service.clone(),
                                notification_service.clone(),
                            ).await
                        }
                    } {
                        logkit::info!(exit_code = 1; "Job failed {}", err);
                    } else {
                        logkit::info!(exit_code = 0; "Job completed successfully");
                    }
                    logger.finalize().await;
                    debug!("Background job {} completed", job.id);
                },
                Some(_) = hourly.next() => {
                    match job_service.trigger(BackgroundJobEvent::Hourly.to_command()).await {
                        Err(err) => warn!("Hourly background job failed {}", err),
                        Ok(id) => debug!("Hourly background job {} completed", id),
                    }
                },
                Some(_) = daily.next() => {
                    match job_service.trigger(BackgroundJobEvent::Daily.to_command()).await {
                        Err(err) => warn!("Daily background job failed {}", err),
                        Ok(id) => debug!("Daily background job {} completed", id),
                    }
                }
                else => {
                    warn!("Background job channel closed");
                    break;
                }
            };
        }
    });
}


Review comment (bug):
```suggestion
                        Ok(id) => debug!("Hourly background job {} scheduled", id),
```

Code after:
                                git_repository_service.clone(),
                                job_service.clone(),
                                integration_service.clone(),
                                third_party_repository_service.clone(),
                                repository_service.clone(),
                            ).await
                        }
                        BackgroundJobEvent::Daily => {
                            let job = DailyJob;
                            job.run(
                                license_service.clone(),
                                notification_service.clone(),
                            ).await
                        }
                    } {
                        logkit::info!(exit_code = 1; "Job failed {}", err);
                    } else {
                        logkit::info!(exit_code = 0; "Job completed successfully");
                    }
                    logger.finalize().await;
                    debug!("Background job {} completed", job.id);
                },
                Some(_) = hourly.next() => {
                    match job_service.trigger(BackgroundJobEvent::Hourly.to_command()).await {
                        Err(err) => warn!("Hourly background job schedule failed {}", err),
                        Ok(id) => debug!("Hourly background job {} scheduled", id),
                    }
                },
                Some(_) = daily.next() => {
                    match job_service.trigger(BackgroundJobEvent::Daily.to_command()).await {
                        Err(err) => warn!("Daily background job schedule failed {}", err),
                        Ok(id) => debug!("Daily background job {} scheduled", id),
                    }
                }
                else => {
                    warn!("Background job channel closed");
                    break;
                }
            };
        }
    });
}