mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
fix(deployments): reset event queue on intermediate chunk uploads
Non-final chunks of a chunked deployment upload set no event params, so the API shutdown hook threw '[siteId] is missing from the params.' (InvalidArgumentException) on every intermediate chunk, aborting the remaining shutdown hooks for the request. The client still received its 202 (the response is flushed before shutdown), so this surfaced as a high-volume phantom 500 in telemetry rather than a failed upload. Reset the event queue when the upload is not yet complete, matching the existing idempotent-retry path. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
78f5085a68
commit
3e1a1f45fd
2 files changed
+4
No files matched your search
@@ -347,6 +347,8 @@ class Create extends Action
|
||||
$queueForEvents
|
||||
->setParam('functionId', $function->getId())
|
||||
->setParam('deploymentId', $deployment->getId());
|
||||
} else {
|
||||
$queueForEvents->reset();
|
||||
}
|
||||
|
||||
$response
|
||||
|
||||
@@ -420,6 +420,8 @@ class Create extends Action
|
||||
$queueForEvents
|
||||
->setParam('siteId', $site->getId())
|
||||
->setParam('deploymentId', $deployment->getId());
|
||||
} else {
|
||||
$queueForEvents->reset();
|
||||
}
|
||||
|
||||
$response
|
||||
|
||||
Reference in new issue
Block a user