Skip to content

[WIP] Add task processing streaming support#60500

Draft
julien-nc wants to merge 5 commits into
masterfrom
enh/noid/taskprocessing-streaming
Draft

[WIP] Add task processing streaming support#60500
julien-nc wants to merge 5 commits into
masterfrom
enh/noid/taskprocessing-streaming

Conversation

@julien-nc
Copy link
Copy Markdown
Member

@julien-nc julien-nc commented May 18, 2026

Summary

This is related with #60167 and nextcloud/integration_openai#366

This adds support for intermediate (streamed) results of task processing tasks.

  • Add a new interface for task processing providers: ISynchronousProgressiveProvider. This new interface includes an additional callback passed as a param to the provider's process method: reportOutput that can be used to set intermediate results.
  • Add an endpoint for exApps to set intermediate results (without setting the task status to FINISHED)
  • Adjust the manager to correctly use ISynchronousProgressiveProvider providers

TODO

  • Decide if it's fine to NOT update the task in DB if notify_push is available

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@julien-nc julien-nc added this to the Nextcloud 35 milestone May 18, 2026
@julien-nc julien-nc force-pushed the enh/noid/taskprocessing-streaming branch 3 times, most recently from 5ca4800 to 6149965 Compare May 21, 2026 12:31
julien-nc added 5 commits May 22, 2026 16:42
…ults with a callback in process

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
…mediate result if notify_push is available

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc force-pushed the enh/noid/taskprocessing-streaming branch from 6149965 to 38ad650 Compare May 22, 2026 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant