diff --git a/db_structure.xml b/db_structure.xml index 9f8cfdce4c56dab7d6401451576e817b194dd7fc..142661ba4276bc513445f59e03f41721e6d796ca 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 95a7b1258010af913356fa94e0ec9a79e0c57010..ded269dfe59e2316fadb3325f3e0d5cd5b43eae2 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)');