diff --git a/TaskEngine/Tasks/QueueAwakerTask.cs b/TaskEngine/Tasks/QueueAwakerTask.cs index 34e993d..99cb4fc 100644 --- a/TaskEngine/Tasks/QueueAwakerTask.cs +++ b/TaskEngine/Tasks/QueueAwakerTask.cs @@ -28,7 +28,7 @@ class QueueAwakerTask : RabbitMQTask private readonly SceneDetectionTask _sceneDetectionTask; private readonly PythonCrawlerTask _pythonCrawlerTask; private readonly CreateBoxTokenTask _createBoxTokenTask; - private readonly UpdateBoxTokenTask _updateBoxTokenTask; + // private readonly UpdateBoxTokenTask _updateBoxTokenTask; private readonly BuildElasticIndexTask _buildElasticIndexTask; private readonly CleanUpElasticIndexTask _cleanUpElasticIndexTask; // private readonly ExampleTask _exampleTask; @@ -42,7 +42,8 @@ public QueueAwakerTask(RabbitMQConnection rabbitMQ, DownloadPlaylistInfoTask dow TranscriptionTask transcriptionTask, ProcessVideoTask processVideoTask, // GenerateVTTFileTask generateVTTFileTask, SceneDetectionTask sceneDetectionTask, - CreateBoxTokenTask createBoxTokenTask, UpdateBoxTokenTask updateBoxTokenTask, PythonCrawlerTask pythonCrawlerTask, + CreateBoxTokenTask createBoxTokenTask,// UpdateBoxTokenTask updateBoxTokenTask, + PythonCrawlerTask pythonCrawlerTask, BuildElasticIndexTask buildElasticIndexTask, CleanUpElasticIndexTask cleanUpElasticIndexTask, DescribeVideoTask describeVideoTask,// DescribeImageTask describeImageTask,ExampleTask exampleTask, @@ -58,7 +59,7 @@ public QueueAwakerTask(RabbitMQConnection rabbitMQ, DownloadPlaylistInfoTask dow _sceneDetectionTask = sceneDetectionTask; _pythonCrawlerTask = pythonCrawlerTask; _createBoxTokenTask = createBoxTokenTask; - _updateBoxTokenTask = updateBoxTokenTask; + // _updateBoxTokenTask = updateBoxTokenTask; _buildElasticIndexTask = buildElasticIndexTask; _cleanUpElasticIndexTask = cleanUpElasticIndexTask; _describeVideoTask = describeVideoTask; @@ -145,7 +146,7 @@ private async Task PendingJobs() // Update Box Token every few hours - _updateBoxTokenTask.Publish(""); + // _updateBoxTokenTask.Publish(""); //We will use these outside of the DB scope // List todoVTTs ; diff --git a/TaskEngine/Tasks/UpdateBoxTokenTask.cs b/TaskEngine/Tasks/UpdateBoxTokenTask.cs index 256db57..566eb53 100644 --- a/TaskEngine/Tasks/UpdateBoxTokenTask.cs +++ b/TaskEngine/Tasks/UpdateBoxTokenTask.cs @@ -8,6 +8,8 @@ // https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca2007 // We are okay awaiting on a task in the same thread + +// !!! May be removed in the future namespace TaskEngine.Tasks { [SuppressMessage("Microsoft.Performance", "CA1812:MarkMembersAsStatic")] // This class is never directly instantiated diff --git a/TaskEngine/TempCode.cs b/TaskEngine/TempCode.cs index d2c50f2..896d2f7 100644 --- a/TaskEngine/TempCode.cs +++ b/TaskEngine/TempCode.cs @@ -19,7 +19,7 @@ class TempCode private readonly CTDbContext context; private readonly CreateBoxTokenTask _createBoxTokenTask; - private readonly UpdateBoxTokenTask _updateBoxTokenTask; + // private readonly UpdateBoxTokenTask _updateBoxTokenTask; private readonly SceneDetectionTask _sceneDetectionTask; private readonly PythonCrawlerTask _pythonCrawlerTask; private readonly ProcessVideoTask _processVideoTask; @@ -32,7 +32,7 @@ class TempCode private readonly QueueAwakerTask _queueAwakerTask; private readonly CleanUpElasticIndexTask _cleanUpElasticIndexTask; - public TempCode(CTDbContext c, CreateBoxTokenTask createBoxTokenTask, UpdateBoxTokenTask updateBoxTokenTask, + public TempCode(CTDbContext c, CreateBoxTokenTask createBoxTokenTask, //UpdateBoxTokenTask updateBoxTokenTask, SceneDetectionTask ePubGeneratorTask, ProcessVideoTask processVideoTask, TranscriptionTask transcriptionTask, ConvertVideoToWavTask convertVideoToWavTask, DownloadMediaTask downloadMediaTask, DownloadPlaylistInfoTask downloadPlaylistInfoTask, QueueAwakerTask queueAwakerTask, @@ -41,7 +41,7 @@ public TempCode(CTDbContext c, CreateBoxTokenTask createBoxTokenTask, UpdateBoxT { context = c; _createBoxTokenTask = createBoxTokenTask; - _updateBoxTokenTask = updateBoxTokenTask; + // _updateBoxTokenTask = updateBoxTokenTask; _sceneDetectionTask = ePubGeneratorTask; _processVideoTask = processVideoTask; // _generateVTTFileTask = generateVTTFileTask;