@@ -67,6 +67,7 @@ public function test_it_ingests_processed_tasks(): void
6767 'name ' => $ name ,
6868 'cron ' => '* * * * * ' ,
6969 'timezone ' => 'UTC ' ,
70+ 'repeat_seconds ' => 0 ,
7071 'without_overlapping ' => false ,
7172 'on_one_server ' => false ,
7273 'run_in_background ' => false ,
@@ -116,6 +117,7 @@ public function test_it_ingests_skipped_tasks(): void
116117 'name ' => $ name ,
117118 'cron ' => '* * * * * ' ,
118119 'timezone ' => 'UTC ' ,
120+ 'repeat_seconds ' => 0 ,
119121 'without_overlapping ' => false ,
120122 'on_one_server ' => false ,
121123 'run_in_background ' => false ,
@@ -167,6 +169,7 @@ public function test_it_ingests_failed_tasks(): void
167169 'name ' => $ name ,
168170 'cron ' => '* * * * * ' ,
169171 'timezone ' => 'UTC ' ,
172+ 'repeat_seconds ' => 0 ,
170173 'without_overlapping ' => false ,
171174 'on_one_server ' => false ,
172175 'run_in_background ' => false ,
@@ -217,6 +220,7 @@ public function test_it_ingests_tasks_run_in_background(): void
217220 'name ' => 'php artisan app:fly tokyo ' ,
218221 'cron ' => '* * * * * ' ,
219222 'timezone ' => 'UTC ' ,
223+ 'repeat_seconds ' => 0 ,
220224 'without_overlapping ' => false ,
221225 'on_one_server ' => false ,
222226 'run_in_background ' => true ,
@@ -248,6 +252,7 @@ public function test_it_ingests_subminute_tasks(): void
248252 $ line = __LINE__ + 1 ;
249253 $ task = $ this ->app [Schedule::class]->call (fn () => $ this ->travelTo (now ()->addMicroseconds (30_000_000 )))->everyThirtySeconds ();
250254 $ name = "Closure at: tests/Feature/Sensors/ScheduledTaskSensorTest.php: {$ line }" ;
255+ $ repeatSeconds = Compatibility::$ subMinuteScheduledTasksSupported ? 30 : 0 ;
251256
252257 Artisan::call ('schedule:run ' );
253258
@@ -260,11 +265,12 @@ public function test_it_ingests_subminute_tasks(): void
260265 'timestamp ' => 946688523.456789 ,
261266 'deploy ' => 'v1.2.3 ' ,
262267 'server ' => 'scheduler-01 ' ,
263- '_group ' => hash ('xxh128 ' , "{$ name }, {$ task ->expression }, {$ task ->timezone }" ),
268+ '_group ' => hash ('xxh128 ' , "{$ name }, {$ task ->expression }, {$ task ->timezone }, { $ repeatSeconds } " ),
264269 'trace_id ' => '00000000-0000-0000-0000-000000000000 ' ,
265270 'name ' => $ name ,
266271 'cron ' => '* * * * * ' ,
267272 'timezone ' => 'UTC ' ,
273+ 'repeat_seconds ' => Compatibility::$ subMinuteScheduledTasksSupported ? 30 : 0 ,
268274 'without_overlapping ' => false ,
269275 'on_one_server ' => false ,
270276 'run_in_background ' => false ,
@@ -296,11 +302,12 @@ public function test_it_ingests_subminute_tasks(): void
296302 'timestamp ' => 946688553.456789 ,
297303 'deploy ' => 'v1.2.3 ' ,
298304 'server ' => 'scheduler-01 ' ,
299- '_group ' => hash ('xxh128 ' , "{$ name }, {$ task ->expression }, {$ task ->timezone }" ),
305+ '_group ' => hash ('xxh128 ' , "{$ name }, {$ task ->expression }, {$ task ->timezone }, { $ repeatSeconds } " ),
300306 'trace_id ' => '00000000-0000-0000-0000-000000000000 ' ,
301307 'name ' => $ name ,
302308 'cron ' => '* * * * * ' ,
303309 'timezone ' => 'UTC ' ,
310+ 'repeat_seconds ' => $ repeatSeconds ,
304311 'without_overlapping ' => false ,
305312 'on_one_server ' => false ,
306313 'run_in_background ' => false ,
0 commit comments