Merge pull request #14046 from nextcloud/docs/taskprocessing-33

fix(developer_manual): Add TaskProcessing updates to 33 upgrade guide
This commit is contained in:
Ferdinand Thiessen
2026-02-02 14:03:38 +01:00
committed by GitHub

View File

@@ -201,11 +201,17 @@ Added APIs
You can add your own exporters by implementing ``\OCP\OpenMetrics\IMetricFamily`` interface.
See :doc:`/digging_deeper/openmetrics` for more information.
- ``ImageToTextOpticalCharacterRecognition`` TaskProcessing task type was added
- ``ISynchronousWatermarkingProvider`` TaskProcessing provider interface was added to allow synchronous processing providers to react to the boolean includeWatermark flag
Changed APIs
^^^^^^^^^^^^
- The ``setId`` and ``getId`` methods of ``\OCP\BackgroundJob\IJob`` were changed to return/accept a string instead of an int. Same for ``\OCP\BackgroundJob\IJobList`` were some methods (``removedById``, ``getById`` and ``getDetailsById``) are now taking a string instead of an int. The string is suppose to be a snowflake id.
- The ``setObjectId`` and ``getObjectId`` methods of ``\OCP\Activity\IEvent`` were changed to return/accept a string in addition to an int. The string is suppose to be a snowflake id.
- The ``\OCP\TaskProcessing\Task`` class now has ``getIncludeWatermark`` and ``setIncludeWatermark`` methods for indicating whether the provider should add a watermark to the generated output.
- The TaskProcessing OCS API now also accepts the ``includeWatermark`` flag when scheduling tasks
Deprecated APIs
^^^^^^^^^^^^^^^