Task attempt f812fa5b-e9d6-4a9a-99f9-b1243f01c462 - Final changes
This commit is contained in:
@@ -470,6 +470,9 @@ impl TaskAttempt {
|
|||||||
.await?
|
.await?
|
||||||
.ok_or(TaskAttemptError::ProjectNotFound)?;
|
.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
|
// Step 1: Run setup script if it exists
|
||||||
if let Some(setup_script) = &project.setup_script {
|
if let Some(setup_script) = &project.setup_script {
|
||||||
if !setup_script.trim().is_empty() {
|
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!(
|
tracing::info!(
|
||||||
"Started execution {} for task attempt {}",
|
"Started execution {} for task attempt {}",
|
||||||
execution_id,
|
execution_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user