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
Next Next commit
Update developer_manual/basics/backgroundjobs.rst
Co-authored-by: Joas Schilling <[email protected]>
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr and nickvergessen authored Apr 20, 2023
commit 0ccf7e4ed6ff0bc99165a1a29a038d1cc81f2894
2 changes: 1 addition & 1 deletion developer_manual/basics/backgroundjobs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ are not that impacted by the heavy load of the background job.
Configuring parallelism
^^^^^^^^^^^^^^^^^^^^^^^

With resource-heavy background jobs that run for longer than a few minutes, be they ``QueuedJob`` and ``TimedJob`` instances, you may want to restrict parallelism to prevent multiple such jobs from clogging up your machine's resources. You can do this with the ``setAllowParallelRuns`` method of ``OCP\BackgroundJob\Job`` (``QueuedJob`` and ``TimedJob`` both inherit from this class, so they also have this available).
With resource-heavy background jobs that run for longer than a few minutes, be they ``QueuedJob`` and ``TimedJob`` instances, you may want to restrict parallelism to prevent multiple such jobs from clogging up the server's resources. You can do this with the ``setAllowParallelRuns`` method of ``OCP\BackgroundJob\Job`` (``QueuedJob`` and ``TimedJob`` both inherit from this class, so they also have this available).

.. code-block:: php

Expand Down