镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

fix(TaskProcessingApiController): use StreamResponse to return file content - #53277

Merged
oleksandr-nc merged 1 commit into
masterfrom
fix/noid/task-processing-file-content-stream
Jun 3, 2025
Merged

oleksandr-nc merged 1 commit into
masterfrom
fix/noid/task-processing-file-content-stream

Conversation

@oleksandr-nc

@oleksandr-nc oleksandr-nc commented Jun 3, 2025 •

Copy link
Copy Markdown
Contributor
  • Resolves: reported internally

Summary

We encountered a situation when the file size for task processing exceeds 512 megabytes (default memory limit for PHP) - and ExApp (stt_whisper2) cannot receive the file for transcription to process it.

Using StreamResponse instead of DataDownloadResponse should not break API compatibility, and should reduce not only resource consumption in the case of AI tasks, but also allow our AI applications to accept files of unlimited size for processing.

Checklist

@oleksandr-nc
oleksandr-nc requested a review from a team as a code owner June 3, 2025 07:40
@oleksandr-nc
oleksandr-nc requested review from ArtificialOwl, come-nc and yemkareems and removed request for a team June 3, 2025 07:40
…sk file content

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc
oleksandr-nc force-pushed the fix/noid/task-processing-file-content-stream branch from cac8136 to 90e8fa2 Compare June 3, 2025 10:09

@kyteinsky kyteinsky left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@oleksandr-nc

Copy link
Copy Markdown
Contributor Author

/backport to stable31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants