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 b8fa132 commit 85da360Copy full SHA for 85da360
src/Illuminate/Queue/Jobs/FakeJob.php
@@ -13,6 +13,13 @@ class FakeJob extends Job
13
*/
14
public $releaseDelay;
15
16
+ /**
17
+ * The number of attempts made to process the job.
18
+ *
19
+ * @var int
20
+ */
21
+ public $attempts = 1;
22
+
23
/**
24
* The exception the job failed with.
25
*
@@ -52,6 +59,16 @@ public function release($delay = 0)
52
59
$this->releaseDelay = $delay;
53
60
}
54
61
62
63
+ * Get the number of times the job has been attempted.
64
65
+ * @return int
66
67
+ public function attempts()
68
+ {
69
+ return $this->attempts;
70
+ }
71
55
72
56
73
* Delete the job from the queue.
57
74
0 commit comments