fix(forge): Change task_id parameter on AgentDB.get_task from int to str

The `task_id` parameter was incorrectly typed as `int`: the database column is type `String`.
This commit is contained in:
Reinier van der Leer
2023-12-08 13:20:20 +01:00
parent a17f752705
commit f734bdb314

View File

@@ -259,7 +259,7 @@ class AgentDB:
LOG.error(f"Unexpected error while creating step: {e}")
raise
async def get_task(self, task_id: int) -> Task:
async def get_task(self, task_id: str) -> Task:
"""Get a task by its id"""
if self.debug_enabled:
LOG.debug(f"Getting task with task_id: {task_id}")