Update.
Tests / test (macos-latest, 3.10) (push) Waiting to run
Tests / test (macos-latest, 3.11) (push) Waiting to run
Tests / test (macos-latest, 3.12) (push) Waiting to run
Tests / test (macos-latest, 3.8) (push) Waiting to run
Tests / test (macos-latest, 3.9) (push) Waiting to run
Tests / test (windows-latest, 3.10) (push) Waiting to run
Tests / test (windows-latest, 3.11) (push) Waiting to run
Tests / test (windows-latest, 3.12) (push) Waiting to run
Tests / test (windows-latest, 3.8) (push) Waiting to run
Tests / test (windows-latest, 3.9) (push) Waiting to run
Lint / lint (push) Failing after 38s
Tests / test (ubuntu-latest, 3.10) (push) Successful in 51s
Tests / test (ubuntu-latest, 3.11) (push) Successful in 46s
Tests / test (ubuntu-latest, 3.12) (push) Successful in 1m30s
Tests / test (ubuntu-latest, 3.8) (push) Successful in 1m0s
Tests / test (ubuntu-latest, 3.9) (push) Successful in 57s

This commit is contained in:
2025-11-04 08:10:37 +01:00
parent 1a29ee4918
commit 9a5bf46a54
44 changed files with 163 additions and 469 deletions
+2 -6
View File
@@ -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()
+2 -6
View File
@@ -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()