mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix(vcs): fix deployments stuck at processing
Ensure project is passed in the event because the init hook isn't able to detect the project. Make sure the build is triggered for each function. Reset the build event so the shutdown hook doesn't trigger again.
This commit is contained in:
@@ -238,11 +238,16 @@ $createGitDeployments = function (GitHub $github, string $providerInstallationId
|
||||
$queueForBuilds
|
||||
->setType(BUILD_TYPE_DEPLOYMENT)
|
||||
->setResource($function)
|
||||
->setDeployment($deployment);
|
||||
->setDeployment($deployment)
|
||||
->setProject($project); // set the project because it won't be set for git deployments
|
||||
|
||||
$queueForBuilds->trigger(); // must trigger here so that we create a build for each function
|
||||
|
||||
//TODO: Add event?
|
||||
}
|
||||
}
|
||||
|
||||
$queueForBuilds->setType(''); // prevent shutdown hook from triggering again
|
||||
};
|
||||
|
||||
App::get('/v1/vcs/github/authorize')
|
||||
|
||||
Reference in New Issue
Block a user