@@ -139,30 +139,31 @@ static void runQueueAwakerForever() {
139139 // TODO/REVIEW: However some tasks also publish the next items
140140 while ( true )
141141 {
142- // try {
143- // _logger.LogInformation("Periodic Check");
144- // queueAwakerTask.Publish(new JObject
145- // {
146- // { "Type", TaskType.PeriodicCheck.ToString() }
147- // });
148- // } catch (Exception e) {
149- // _logger.LogError(e, "Error in Periodic Check");
150- // }
151-
152142 try {
153- var videoId = "ddceb720-a9d6-417d-b5ea-e94c6c0a86c6" ;
154- _logger . LogInformation ( "Transcription Task Initiated" ) ;
143+ _logger . LogInformation ( "Periodic Check" ) ;
155144 queueAwakerTask . Publish ( new JObject
156145 {
157- { "Type" , TaskType . TranscribeVideo . ToString ( ) } ,
158- { "videoOrMediaId" , videoId }
146+ { "Type" , TaskType . PeriodicCheck . ToString ( ) }
159147 } ) ;
160-
161- _logger . LogInformation ( "Transcription Task Published Successfully" ) ;
162148 } catch ( Exception e ) {
163- _logger . LogError ( e , "Error in Transcription Task " ) ;
149+ _logger . LogError ( e , "Error in Periodic Check " ) ;
164150 }
165151
152+ // Hacky testing...
153+ // try {
154+ // var videoId = "ddceb720-a9d6-417d-b5ea-e94c6c0a86c6";
155+ // _logger.LogInformation("Transcription Task Initiated");
156+ // queueAwakerTask.Publish(new JObject
157+ // {
158+ // { "Type", TaskType.LocalTranscribeVideo.ToString() },
159+ // { "videoOrMediaId", videoId }
160+ // });
161+
162+ // _logger.LogInformation("Transcription Task Published Successfully");
163+ // } catch (Exception e) {
164+ // _logger.LogError(e, "Error in Transcription Task");
165+ // }
166+
166167
167168 // Thread.Sleep(timeInterval);
168169 Task . Delay ( timeInterval ) . Wait ( ) ;
@@ -208,7 +209,7 @@ static void createTaskQueues() {
208209 _serviceProvider . GetService < SceneDetectionTask > ( ) . Consume ( DISABLED_TASK ) ;
209210
210211 // We dont want concurrency for these tasks
211- _logger . LogInformation ( "Creating QueueAwakerTask and Box token tasks consumers. " ) ;
212+ _logger . LogInformation ( "Creating QueueAwakerTask and Box token tasks consumers! " ) ;
212213 _serviceProvider . GetService < QueueAwakerTask > ( ) . Consume ( NO_CONCURRENCY ) ; //TODO TOREVIEW: NO_CONCURRENCY?
213214 // does nothing at the moment _serviceProvider.GetService<UpdateBoxTokenTask>().Consume(NO_CONCURRENCY);
214215 _serviceProvider . GetService < CreateBoxTokenTask > ( ) . Consume ( NO_CONCURRENCY ) ; // calls _box.CreateAccessTokenAsync(authCode);
0 commit comments