We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2aab87d commit 7cecba9Copy full SHA for 7cecba9
src/Queue.php
@@ -36,10 +36,16 @@ public function __construct(string $name, QueueOpts $opts = null)
36
*/
37
public function add(string $name, array $data, JobOpts $opts = null)
38
{
39
+ $timestamp = (int) round(microtime(true) * 1000);
40
+
41
$opts = $opts ?: new JobOpts([
- 'timestamp' => (int) round(microtime(true) * 1000),
42
+ 'timestamp' => $timestamp,
43
]);
44
45
+ if (!$opts->timestamp) {
46
+ $opts->timestamp = $timestamp;
47
+ }
48
49
$prefix = sprintf('%s:%s:', $this->opts->prefix, $this->name);
50
51
return $this->client()->add(
0 commit comments