mirror of
https://github.com/nextcloud/server.git
synced 2026-04-07 01:56:38 -04:00
20 lines
379 B
PHP
20 lines
379 B
PHP
<?php
|
|
|
|
namespace OCP\BackgroundJob;
|
|
|
|
interface IParallelAwareJob {
|
|
/**
|
|
* Set this to false to prevent two Jobs from the same class from running in parallel
|
|
*
|
|
* @param bool $allow
|
|
* @return void
|
|
* @since 27.0.0
|
|
*/
|
|
public function setAllowParallelRuns(bool $allow): void;
|
|
|
|
/**
|
|
* @return bool
|
|
* @since 27.0.0
|
|
*/
|
|
public function getAllowParallelRuns(): bool;
|
|
}
|