generated from fahricansecer/boilerplate-be
@@ -116,6 +116,14 @@ public class QueueConsumerService : BackgroundService
|
||||
|
||||
try
|
||||
{
|
||||
// İptal kontrolü: İşlem iptal edilmiş mi?
|
||||
var currentStatus = await _dbService.GetRenderJobStatus(job.RenderJobId);
|
||||
if (currentStatus == "CANCELLED")
|
||||
{
|
||||
_logger.LogInformation("⏭️ [Atlandı] Job iptal edilmiş — Project: {ProjectId}, RenderJob: {RenderJobId}", job.ProjectId, job.RenderJobId);
|
||||
return;
|
||||
}
|
||||
|
||||
// DB'de render job durumunu PROCESSING yap
|
||||
await _dbService.UpdateRenderJobStatus(
|
||||
job.RenderJobId, "PROCESSING", 0, "VIDEO_GENERATION",
|
||||
|
||||
Reference in New Issue
Block a user