summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/backgroundjob/joblist.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/backgroundjob/joblist.php b/lib/private/backgroundjob/joblist.php
index 95a7b125801..ded269dfe59 100644
--- a/lib/private/backgroundjob/joblist.php
+++ b/lib/private/backgroundjob/joblist.php
@@ -57,7 +57,7 @@ class JobList implements IJobList {
$class = $job;
}
$argument = json_encode($argument);
- if (strlen($argument) > 2048) {
+ if (strlen($argument) > 4000) {
throw new \InvalidArgumentException('Background job arguments cant exceed 2048 characters (json encoded');
}
$query = $this->conn->prepare('INSERT INTO `*PREFIX*jobs`(`class`, `argument`, `last_run`) VALUES(?, ?, 0)');