Files
app/backend/fluksio/alembic/versions/a3c7e5d91f42_run_for_node.py
T
stroblme e91015965a
Docs / docs (push) Successful in 38s
Playwright Tests / test-playwright (1, 2) (push) Failing after 1m44s
Playwright Tests / test-playwright (2, 2) (push) Failing after 31s
pre-commit / pre-commit (push) Failing after 3m1s
Test Backend / test-backend (3.12) (push) Failing after 5m2s
Test Backend / test-backend (3.14) (push) Failing after 4m42s
Compose Smoke Test / test-compose (push) Failing after 25s
Playwright Tests / merge-reports (push) Failing after 5m6s
wren node: Train in the panel, as a run of wren's training flow
POST/GET /flows/{name}/nodes/{id}/train submit wren_train on the node's
targets, examples and tests and read its latest run (run.for_node,
cause "train"); "Use this model" writes `model` into the draft.

Claude-Session: https://claude.ai/code/session_01H89mFby73wwhthP9htfcuB
2026-10-25 01:18:54 +02:00

34 lines
679 B
Python

"""run.for_node
A wren node's Train button submits wren's training flow as a run. The node
it was pressed on is what ties that run back to the node's panel.
Revision ID: a3c7e5d91f42
Revises: ccb21eacf5d5
Create Date: 2026-10-24
"""
import sqlalchemy as sa
import sqlmodel.sql.sqltypes
from alembic import op
# revision identifiers, used by Alembic.
revision = "a3c7e5d91f42"
down_revision = "ccb21eacf5d5"
branch_labels = None
depends_on = None
def upgrade():
op.add_column(
"run",
sa.Column(
"for_node", sqlmodel.sql.sqltypes.AutoString(length=255), nullable=True
),
)
def downgrade():
op.drop_column("run", "for_node")