Task attempt f812fa5b-e9d6-4a9a-99f9-b1243f01c462 - Final changes

This commit is contained in:
Louis Knight-Webb
2025-06-20 16:52:52 +01:00
parent 7eca9889b9
commit 99bd94b6df

View File

@@ -470,6 +470,9 @@ impl TaskAttempt {
.await?
.ok_or(TaskAttemptError::ProjectNotFound)?;
// Update task status to InProgress at the start of execution (during setup)
Task::update_status(pool, task_id, project_id, TaskStatus::InProgress).await?;
// Step 1: Run setup script if it exists
if let Some(setup_script) = &project.setup_script {
if !setup_script.trim().is_empty() {
@@ -596,9 +599,6 @@ impl TaskAttempt {
);
}
// Update task status to InProgress
Task::update_status(pool, task_id, project_id, TaskStatus::InProgress).await?;
tracing::info!(
"Started execution {} for task attempt {}",
execution_id,