Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "spinx/sidekiq-job-php",
"name": "hosportal/sidekiq-job-php",
"description": "Push and schedule jobs to Sidekiq from PHP",
"type": "library",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,11 @@ public function pushBulk($jobs = [], $queue = self::QUEUE)
*/
private function atomicPush($jobId, $class, $args = [], $queue = self::QUEUE, $retry = true, $doAt = null)
{
/* OUTDATED SIDEKIQ SPEC
if (array_values($args) !== $args) {
throw new Exception('Associative arrays in job args are not allowed');
}
*/

if (!is_null($doAt) && !is_float($doAt) && is_string($doAt)) {
throw new Exception('at argument needs to be in a unix epoch format. Use microtime(true).');
Expand Down