0

我正在使用FileHueyWindows 中的 Huey 变体。我们正在使用Flask. 虽然 Enqueue 工作正常。消费者无法消费并执行任务。它失败并出现错误:

ERROR:huey.consumer.Worker:Worker-1:Error reading from queue
Traceback (most recent call last):
  File "C:\Miniconda3-Windows-x86_64\lib\site-packages\huey\consumer.py", line 109, in loop
    task = self.huey.dequeue()

  File "C:\Miniconda3-Windows-x86_64\lib\site-packages\huey\api.py", line 306, in dequeue
    data = self.storage.dequeue()

  File "C:\Miniconda3-Windows-x86_64\lib\site-packages\huey\storage.py", line 921, in dequeue
    os.unlink(tmp_dest)

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'D:/Temp/Queue\\queue\\ffff-0179850bcd9e.tmp'

我正在创建这样的 FileHuey 实例

huey = FileHuey(path ='D:/Temp/Queue' ,levels=4, use_thread_lock=True)

有什么我想念的吗?

4

0 回答 0