FIX AutoDL修复log
This commit is contained in:
@@ -22,7 +22,7 @@ class Server:
|
||||
self.waiting_queue = WaitingQueue()
|
||||
self.running_pool = RunningPool()
|
||||
#账号限制max_instance不能超过30
|
||||
self.instance_pool = InstancePool(max_instance=5)
|
||||
self.instance_pool = InstancePool(max_instance=3)
|
||||
self.result_map = ResultMap()
|
||||
self.executor = ThreadPoolExecutor(max_workers=2)
|
||||
self.worker_1 = self.executor.submit(self.scaling_worker)
|
||||
@@ -77,6 +77,7 @@ class Server:
|
||||
if not instance.active:
|
||||
# 从等待队列取出任务
|
||||
uid, video_path, audio_path = self.waiting_queue.dequeue()
|
||||
loguru.logger.info("Task[%s] Submitting to Instance[%s]" % (uid, instance.uuid))
|
||||
# 提交任务到运行池
|
||||
if self.running_pool.run(instance.uuid, uid, instance.domain, video_path, audio_path):
|
||||
# 更新实例池状态
|
||||
|
||||
Reference in New Issue
Block a user