Skip to content

Commit

Permalink
fix: flake8 and black errors
Browse files Browse the repository at this point in the history
  • Loading branch information
provos committed Sep 3, 2024
1 parent a339573 commit 88dbf7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/planai/cached_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ def _cache_up_call(self, input_task: Task, cached_results: List[Task]):
self._cache.set(cache_key, cached_results)
logging.info("Task %s cached results for key: %s", self.name, cache_key)
except Exception as e:
logging.error("Error caching results for key %s: %s", cache_key, str(e))
logging.error("Error caching results for key %s: %s", cache_key, str(e))
6 changes: 1 addition & 5 deletions src/planai/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ def prefix_for_input_task(
return None


import logging
import threading


class WorkBufferContext:
def __init__(self, worker, input_task=None):
self.worker: "TaskWorker" = worker
Expand Down Expand Up @@ -133,7 +129,7 @@ def _flush_work_buffer(self):
self.worker._dispatch_work(task)
self.work_buffer.clear()

def add_to_buffer(self, consumer: 'TaskWorker', task: "Task"):
def add_to_buffer(self, consumer: "TaskWorker", task: "Task"):
self.work_buffer.append((consumer, task))


Expand Down

0 comments on commit 88dbf7f

Please sign in to comment.