This repository was archived by the owner on Jul 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
src/ServiceLayer.Mesh/Functions Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ private async Task<MeshFile> CreateMeshFile(string messageId)
6262
6363 ServiceLayerDbContext . MeshFiles . Add ( file ) ;
6464
65- await UpdateFileStatus ( file , MeshFileStatus . Discovered ) ;
65+ await UpdateMeshFile ( file , MeshFileStatus . Discovered ) ;
6666
6767 return file ;
6868 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public async Task Run([QueueTrigger("%FileExtractQueueName%")] FileExtractQueueM
3232 return ;
3333 }
3434
35- await UpdateFileStatus ( file , MeshFileStatus . Extracting ) ;
35+ await UpdateMeshFile ( file , MeshFileStatus . Extracting ) ;
3636 await transaction . CommitAsync ( ) ;
3737
3838 try
@@ -93,15 +93,15 @@ private async Task ProcessFileExtraction(MeshFile file)
9393 }
9494
9595 file . BlobPath = blobPath ;
96- await UpdateFileStatus ( file , MeshFileStatus . Extracted ) ;
96+ await UpdateMeshFile ( file , MeshFileStatus . Extracted ) ;
9797
9898 await fileTransformQueueClient . EnqueueFileTransformAsync ( file ) ;
9999 }
100100
101101 private async Task HandleExtractionError ( MeshFile file , FileExtractQueueMessage message , Exception ex )
102102 {
103103 logger . LogError ( ex , "An exception occurred during file extraction for fileId: {FileId}" , message . FileId ) ;
104- await UpdateFileStatus ( file , MeshFileStatus . FailedExtract ) ;
104+ await UpdateMeshFile ( file , MeshFileStatus . FailedExtract ) ;
105105 await fileExtractQueueClient . SendToPoisonQueueAsync ( message ) ;
106106 }
107107
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ private async Task RetryStaleExtractions(DateTime staleDateTimeUtc)
3939 foreach ( var file in staleFiles )
4040 {
4141 await fileExtractQueueClient . EnqueueFileExtractAsync ( file ) ;
42- await UpdateFileStatus ( file , file . Status ) ;
42+ await UpdateMeshFile ( file , file . Status ) ;
4343 await ServiceLayerDbContext . SaveChangesAsync ( ) ;
4444 logger . LogInformation ( "FileRetryFunction: File {FileFileId} enqueued to Extract queue" , file . FileId ) ;
4545 }
@@ -58,7 +58,7 @@ private async Task RetryStaleTransformations(DateTime staleDateTimeUtc)
5858 foreach ( var file in staleFiles )
5959 {
6060 await fileTransformQueueClient . EnqueueFileTransformAsync ( file ) ;
61- await UpdateFileStatus ( file , file . Status ) ;
61+ await UpdateMeshFile ( file , file . Status ) ;
6262 await ServiceLayerDbContext . SaveChangesAsync ( ) ;
6363 logger . LogInformation ( "FileRetryFunction: File {FileFileId} enqueued to Transform queue" , file . FileId ) ;
6464 }
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ public async Task Run([QueueTrigger("%FileTransformQueueName%")] FileTransformQu
4242 return ;
4343 }
4444
45- await UpdateFileStatus ( file , MeshFileStatus . Transforming ) ;
45+ await UpdateMeshFile ( file , MeshFileStatus . Transforming ) ;
4646 await transaction . CommitAsync ( ) ;
4747
4848 try
@@ -100,7 +100,7 @@ private async Task ProcessFileTransformation(MeshFile file)
100100 throw new InvalidOperationException ( "Validation errors encountered" ) ;
101101 }
102102
103- await UpdateFileStatus ( file , MeshFileStatus . Transformed ) ;
103+ await UpdateMeshFile ( file , MeshFileStatus . Transformed ) ;
104104 }
105105
106106 private IFileTransformer GetTransformerFor ( MeshFileType type )
@@ -120,7 +120,7 @@ private IFileTransformer GetTransformerFor(MeshFileType type)
120120 private async Task HandleTransformationError ( MeshFile file , FileTransformQueueMessage message , Exception ex )
121121 {
122122 logger . LogError ( ex , "An exception occurred during file transformation for fileId: {FileId}" , message . FileId ) ;
123- await UpdateFileStatus ( file , MeshFileStatus . FailedTransform ) ;
123+ await UpdateMeshFile ( file , MeshFileStatus . FailedTransform ) ;
124124 await fileTransformQueueClient . SendToPoisonQueueAsync ( message ) ;
125125 }
126126
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ public abstract class MeshFileFunctionBase(ServiceLayerDbContext serviceLayerDbC
99
1010 protected abstract FileEventSource Source { get ; }
1111
12- protected async Task UpdateFileStatus ( MeshFile file , MeshFileStatus status )
12+ protected async Task UpdateMeshFile ( MeshFile file , MeshFileStatus status )
1313 {
1414 var now = DateTime . UtcNow ;
1515
You can’t perform that action at this time.
0 commit comments