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.
withoutOverlapping
PendingEventAttributes
1 parent e4feb68 commit 60ffb04Copy full SHA for 60ffb04
src/Illuminate/Console/Scheduling/PendingEventAttributes.php
@@ -17,6 +17,23 @@ public function __construct(
17
) {
18
}
19
20
+ /**
21
+ * Do not allow the event to overlap each other.
22
+ *
23
+ * The expiration time of the underlying cache lock may be specified in minutes.
24
25
+ * @param int $expiresAt
26
+ * @return $this
27
+ */
28
+ public function withoutOverlapping($expiresAt = 1440)
29
+ {
30
+ $this->withoutOverlapping = true;
31
+
32
+ $this->expiresAt = $expiresAt;
33
34
+ return $this;
35
+ }
36
37
/**
38
* Merge the current attributes into the given event.
39
*/
0 commit comments