Brings in main's OAuth2 state and nonce validation (#14012), which cloud
needs, along with the realtime origin alignment (#14020), subscriber
target ownership (#14019), GitLab primary email (#14010), impersonation
MFA (#14017), write-only webhook passwords (#14016), chunked-upload
resume ownership (#14014), preview authorize validation (#14013),
nightly forcing (#14015) and scheduled-function enqueue checks (#14011).
The merge had no textual conflicts, and main left composer.json and
composer.lock unchanged. So the lock keeps the branch's database and
async pins.
Main's assertResumeAllowed() in Storage Buckets/Files/Create checks
Input(Database::PERMISSION_UPDATE, ...). utopia-php/database 8 has no
PERMISSION_* constants, so every chunked resume would fail with an
undefined-constant error. It now passes PermissionType::Update, as the
rest of that action already does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
What
Adds a protected
ScheduleFunctions::shouldEnqueue()hook (defaulttrue), checked before each scheduled run is enqueued.Why
On Cloud, the functions worker's init hook rejects runs for teams over their billing limit. On the Redis broker a rejected job stays on
failed.v1-functionswith its full payload (~8 KB, no TTL), and nothing retries it. On 2026-09-30 fra1 this reached 259k entries (~2 GB, ~40k/day, 98% scheduled runs), filledqueue-dragonfly, and it started evicting live jobs.Cloud will override the hook to skip runs for teams over their limit, so they are never enqueued. There is no change to self-hosted behaviour.