Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update developer_manual/digging_deeper/text_processing.rst
Co-authored-by: Julien Veyssier <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
2 people authored and backportbot-nextcloud[bot] committed Dec 1, 2023
commit d19c17a447af71f89a7314284306393155fb2f6e
14 changes: 7 additions & 7 deletions developer_manual/digging_deeper/text_processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ Of course, you might want to schedule the task in a background job **only** if i
}

switch ($summaryTask->getStatus()) {
case \OCP\TextProcessing\Task::STATUS_SUCCESSFUL:
// task was run directly and was successful
case \OCP\TextProcessing\Task::STATUS_RUNNING:
case \OCP\TextProcessing\Task::STATUS_SCHEDULED:
// task was deferred to background job
default:
// something went wrong
case \OCP\TextProcessing\Task::STATUS_SUCCESSFUL:
// task was run directly and was successful
case \OCP\TextProcessing\Task::STATUS_RUNNING:
case \OCP\TextProcessing\Task::STATUS_SCHEDULED:
// task was deferred to background job
default:
// something went wrong
}

Task statuses
Expand Down