mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Route the Functions/Create VCS deploy through jobs
The last function VCS build path still pinned to the executor. Although it only fires for pre-1.7.0 clients (modern clients create then call createVcsDeployment), leaving it on the executor blocks a full migration off the executor build path. Inject the Jobs client and pass it to redeployVcsFunction (empty template + functions collection → the same guarded jobs branch as createVcsDeployment), so on _APP_BUILDS_BACKEND=orchestrator every function VCS build — manual, webhook, connect-time, and legacy create — runs on jobs. Static-checked only — VCS isn't verifiable locally. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f48ff3f63b
commit
5a4b2fa19c
1 file changed
+4
@@ -20,6 +20,7 @@ use Appwrite\Task\Validator\Cron;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Appwrite\Utopia\Response\Model\Rule;
|
||||
use OpenRuntimes\Orchestrator\Jobs;
|
||||
use Utopia\Abuse\Abuse;
|
||||
use Utopia\Config\Config;
|
||||
use Utopia\Database\Database;
|
||||
@@ -123,6 +124,7 @@ class Create extends Base
|
||||
->inject('project')
|
||||
->inject('queueForEvents')
|
||||
->inject('publisherForBuilds')
|
||||
->inject('jobs')
|
||||
->inject('queueForRealtime')
|
||||
->inject('queueForWebhooks')
|
||||
->inject('publisherForFunctions')
|
||||
@@ -167,6 +169,7 @@ class Create extends Base
|
||||
Document $project,
|
||||
Event $queueForEvents,
|
||||
BuildPublisher $publisherForBuilds,
|
||||
Jobs $jobs,
|
||||
Realtime $queueForRealtime,
|
||||
Webhook $queueForWebhooks,
|
||||
FunctionPublisher $publisherForFunctions,
|
||||
@@ -343,6 +346,7 @@ class Create extends Base
|
||||
installation: $installation,
|
||||
dbForProject: $dbForProject,
|
||||
publisherForBuilds: $publisherForBuilds,
|
||||
jobs: $jobs,
|
||||
template: $template,
|
||||
github: $github,
|
||||
activate: true,
|
||||
|
||||
Reference in new issue
Block a user