File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 17
17
use App \Services \DiscordClient ;
18
18
19
19
class ProcessRosterInactivity implements ShouldQueue
20
+
20
21
{
21
22
use Dispatchable;
22
23
use InteractsWithQueue;
23
24
use Queueable;
24
25
use SerializesModels;
25
26
27
+ public $ timeout = 600 ;
28
+
26
29
/**
27
30
* Create a new job instance.
28
31
*
@@ -40,6 +43,9 @@ public function __construct()
40
43
*/
41
44
public function handle ()
42
45
{
46
+ // Timeout length (seconds)
47
+ ini_set ('max_execution_time ' , 600 );
48
+
43
49
// Counter Variables (For Message at End)
44
50
$ first_notice = 0 ; //1NOV message sent out
45
51
$ second_notice = 0 ; //1DEC message sent out
@@ -88,21 +94,19 @@ public function handle()
88
94
$ active_status = 1 ;
89
95
}
90
96
91
- dd (Carbon::now ()->format ('d/m ' ));
92
-
93
97
// 1NOV - 2 Month Activity Check
94
- if ($ roster ->certification == "certified " && $ roster ->active && Carbon::now ()->format ('d/m ' ) == "1/11 " && $ roster ->currency < 1 ) {
98
+ if ($ roster ->certification == "certified " && $ roster ->active && Carbon::now ()->format ('d/m ' ) == "01/12 " && $ roster ->currency < 1 ) {
95
99
$ active_status = 0 ;
96
100
97
101
$ first_names [] = $ name ;
98
102
99
103
$ first_notice ++;
100
104
101
- Notification::send ($ roster ->user , new TwoMonthFromRemoval ($ roster ->user , $ currency ));
105
+ // Notification::send($roster->user, new TwoMonthFromRemoval($roster->user, $currency));
102
106
}
103
107
104
108
// 1DEC - 1 Month till Removal
105
- if ($ roster ->certification == "certified " && Carbon::now ()->format ('d/m ' ) == "1 /12 " && $ roster ->currency < 1 ){
109
+ if ($ roster ->certification == "certified " && Carbon::now ()->format ('d/m ' ) == "02 /12 " && $ roster ->currency < 1 ){
106
110
$ active_status = 0 ;
107
111
108
112
$ second_names [] = $ name ;
You can’t perform that action at this time.
0 commit comments