Add one more cancel check

This commit is contained in:
Khushboo Verma 2024-05-27 18:31:35 +05:30
parent 63a5b9eed3
commit 93b4bfe4df

View file

@ -495,6 +495,11 @@ class Builds extends Action
$function = $dbForProject->updateDocument('functions', $function->getId(), $function);
}
$build = $dbForProject->getDocument('builds', $buildId);
if ($build->getAttribute('status') === 'cancelled') {
return;
}
/** Update function schedule */
// Inform scheduler if function is still active