chore: collapse multi-line argument definitions into single lines across multiple modules
This commit is contained in:
@@ -40,9 +40,7 @@ class WorkflowEngine:
|
||||
self.tool_executor = tool_executor
|
||||
self.max_workers = max_workers
|
||||
|
||||
def _evaluate_condition(
|
||||
self, condition: str, context: WorkflowExecutionContext
|
||||
) -> bool:
|
||||
def _evaluate_condition(self, condition: str, context: WorkflowExecutionContext) -> bool:
|
||||
if not condition:
|
||||
return True
|
||||
|
||||
@@ -188,9 +186,7 @@ class WorkflowEngine:
|
||||
result = future.result()
|
||||
context.log_event("step_completed", step.step_id, result)
|
||||
except Exception as e:
|
||||
context.log_event(
|
||||
"step_failed", step.step_id, {"error": str(e)}
|
||||
)
|
||||
context.log_event("step_failed", step.step_id, {"error": str(e)})
|
||||
|
||||
else:
|
||||
pending_steps = workflow.get_initial_steps()
|
||||
|
||||
@@ -104,9 +104,7 @@ class WorkflowStorage:
|
||||
conn = sqlite3.connect(self.db_path, check_same_thread=False)
|
||||
cursor = conn.cursor()
|
||||
|
||||
cursor.execute(
|
||||
"SELECT workflow_data FROM workflows WHERE workflow_id = ?", (workflow_id,)
|
||||
)
|
||||
cursor.execute("SELECT workflow_data FROM workflows WHERE workflow_id = ?", (workflow_id,))
|
||||
row = cursor.fetchone()
|
||||
conn.close()
|
||||
|
||||
@@ -174,9 +172,7 @@ class WorkflowStorage:
|
||||
cursor.execute("DELETE FROM workflows WHERE workflow_id = ?", (workflow_id,))
|
||||
deleted = cursor.rowcount > 0
|
||||
|
||||
cursor.execute(
|
||||
"DELETE FROM workflow_executions WHERE workflow_id = ?", (workflow_id,)
|
||||
)
|
||||
cursor.execute("DELETE FROM workflow_executions WHERE workflow_id = ?", (workflow_id,))
|
||||
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user