mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add one more cancel check
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user