summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--db_structure.xml2
-rw-r--r--lib/private/backgroundjob/joblist.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/db_structure.xml b/db_structure.xml
index 9f8cfdce4c5..142661ba427 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -979,7 +979,7 @@
<type>text</type>
<default></default>
<notnull>true</notnull>
- <length>2048</length>
+ <length>4000</length>
</field>
<field>
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)');