JHyeok5 commited on
Commit
766d29f
ยท
verified ยท
1 Parent(s): c481aa6

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. work_queue.py +6 -1
work_queue.py CHANGED
@@ -45,7 +45,12 @@ class QueuedTask:
45
  class WorkQueueManager:
46
  """์ž‘์—… ํ ๊ด€๋ฆฌ์ž"""
47
 
48
- def __init__(self, queue_dir: str = ".claude/queue", config_path: str = ".claude/queue-config.json"):
 
 
 
 
 
49
  self.queue_dir = Path(queue_dir)
50
  self.config_path = Path(config_path)
51
  self.queue_dir.mkdir(parents=True, exist_ok=True)
 
45
  class WorkQueueManager:
46
  """์ž‘์—… ํ ๊ด€๋ฆฌ์ž"""
47
 
48
+ def __init__(self, queue_dir: str = None, config_path: str = None):
49
+ import os
50
+ if queue_dir is None:
51
+ queue_dir = os.getenv("WORK_QUEUE_DIR", "/tmp/work-queue")
52
+ if config_path is None:
53
+ config_path = os.getenv("WORK_QUEUE_CONFIG", "/tmp/work-queue/config.json")
54
  self.queue_dir = Path(queue_dir)
55
  self.config_path = Path(config_path)
56
  self.queue_dir.mkdir(parents=True, exist_ok=True)