diff options
| author | soryu <soryu@soryu.co> | 2026-02-04 01:59:40 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-04 01:59:40 +0000 |
| commit | 612cecc5bd5dbfc73d4a3a9d38626378eaf39041 (patch) | |
| tree | e23a4772b5299082a99c5ec449cbe222dc038e98 /makima/src/db | |
| parent | 40f4c4ebbb41a46d83fa67fa43e6ec683ab7fdb2 (diff) | |
| download | soryu-612cecc5bd5dbfc73d4a3a9d38626378eaf39041.tar.gz soryu-612cecc5bd5dbfc73d4a3a9d38626378eaf39041.zip | |
Remove chain supervisor capability
Chains no longer spawn a supervisor task. Checkpoint contracts will be
automatically run as part of the DAG execution when dependencies complete.
- Remove supervisor task creation from start_chain handler
- Remove chain supervisor CLI commands
- Remove supervisor_task_id from StartChainResponse
- Remove withSupervisor option from frontend
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Diffstat (limited to 'makima/src/db')
| -rw-r--r-- | makima/src/db/models.rs | 8 | ||||
| -rw-r--r-- | makima/src/db/repository.rs | 16 |
2 files changed, 2 insertions, 22 deletions
diff --git a/makima/src/db/models.rs b/makima/src/db/models.rs index 0b8ef43..4e569ec 100644 --- a/makima/src/db/models.rs +++ b/makima/src/db/models.rs @@ -3064,14 +3064,11 @@ pub struct UpdateContractDefinitionRequest { pub editor_y: Option<f64>, } -/// Request to start a chain +/// Request to start a chain (kept for backwards compatibility) #[derive(Debug, Clone, Deserialize, ToSchema)] #[serde(rename_all = "camelCase")] pub struct StartChainRequest { - /// Whether to create a supervisor task that monitors chain progress - #[serde(default)] - pub with_supervisor: bool, - /// Repository URL for the supervisor task to work with + /// Repository URL (reserved for future use) pub repository_url: Option<String>, } @@ -3080,7 +3077,6 @@ pub struct StartChainRequest { #[serde(rename_all = "camelCase")] pub struct StartChainResponse { pub chain_id: Uuid, - pub supervisor_task_id: Option<Uuid>, /// Root contracts created (those with no dependencies) pub contracts_created: Vec<Uuid>, pub status: String, diff --git a/makima/src/db/repository.rs b/makima/src/db/repository.rs index fb430ab..ec233ba 100644 --- a/makima/src/db/repository.rs +++ b/makima/src/db/repository.rs @@ -5687,22 +5687,6 @@ pub async fn get_chain_definition_graph( })) } -/// Set the supervisor task ID for a chain. -pub async fn set_chain_supervisor_task( - pool: &PgPool, - chain_id: Uuid, - supervisor_task_id: Option<Uuid>, -) -> Result<(), sqlx::Error> { - sqlx::query( - "UPDATE chains SET supervisor_task_id = $2, updated_at = NOW() WHERE id = $1", - ) - .bind(chain_id) - .bind(supervisor_task_id) - .execute(pool) - .await?; - Ok(()) -} - /// Update chain status. pub async fn update_chain_status( pool: &PgPool, |
