File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,19 @@ class BackfillIdenticons extends Command
27
27
*/
28
28
public function handle ()
29
29
{
30
+ $ i = 0 ;
31
+
30
32
User::whereNotNull ('github_id ' )
31
- ->chunk (100 , function ($ users ) {
33
+ ->chunk (100 , function ($ users ) use (& $ i ) {
32
34
foreach ($ users as $ user ) {
33
35
UpdateUserIdenticonStatus::dispatch ($ user );
36
+
37
+ $ i ++;
34
38
}
35
39
36
- sleep ( 2 );
40
+ $ this -> info ( ' Dispatched job for ' . $ i . ' users ' );
37
41
});
42
+
43
+ $ this ->info ('Dispatched job for a total of ' .$ i .' users ' );
38
44
}
39
45
}
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ public function hasIdenticon(int|string $id): bool
30
30
31
31
[$ width , $ height ] = $ info ;
32
32
33
- return ! ( $ width === 420 && $ height === 420 ) ;
33
+ return $ width === 420 && $ height === 420 ;
34
34
}
35
35
}
You can’t perform that action at this time.
0 commit comments