From 5a4b2fa19cf7346d1d39a25996515cc11d2b1434 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Wed, 8 Jul 2026 20:14:52 +0100 Subject: [PATCH] Route the Functions/Create VCS deploy through jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .../Platform/Modules/Functions/Http/Functions/Create.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php index 9de42c369c..ada8596e06 100644 --- a/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php +++ b/src/Appwrite/Platform/Modules/Functions/Http/Functions/Create.php @@ -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,