@@ -68,8 +68,13 @@ final public function handle(): void
6868
6969 foreach ($ tmdbMovieIds as $ id ) {
7070 usleep (250_000 );
71- ProcessMovieJob::dispatchSync ($ id );
72- $ this ->info ("Movie metadata fetched for tmdb {$ id }" );
71+
72+ try {
73+ ProcessMovieJob::dispatchSync ($ id );
74+ $ this ->info ("Movie metadata fetched for tmdb {$ id }" );
75+ } catch (Exception $ e ) {
76+ $ this ->warn ("Movie metadata fetch failed for tmdb {$ id }: " .$ e ->getMessage ());
77+ }
7378 }
7479
7580 $ this ->info ('Querying all tmdb tv ids ' );
@@ -85,8 +90,13 @@ final public function handle(): void
8590
8691 foreach ($ tmdbTvIds as $ id ) {
8792 usleep (250_000 );
88- ProcessTvJob::dispatchSync ($ id );
89- $ this ->info ("TV metadata fetched for tmdb {$ id }" );
93+
94+ try {
95+ ProcessTvJob::dispatchSync ($ id );
96+ $ this ->info ("TV metadata fetched for tmdb {$ id }" );
97+ } catch (Exception $ e ) {
98+ $ this ->warn ("TV metadata fetch failed for tmdb {$ id }: " .$ e ->getMessage ());
99+ }
90100 }
91101
92102 $ this ->info ('Querying all igdb game ids ' );
@@ -102,8 +112,13 @@ final public function handle(): void
102112
103113 foreach ($ igdbGameIds as $ id ) {
104114 usleep (250_000 );
105- ProcessIgdbGameJob::dispatchSync ($ id );
106- $ this ->info ("Game metadata fetched for igdb {$ id }" );
115+
116+ try {
117+ ProcessIgdbGameJob::dispatchSync ($ id );
118+ $ this ->info ("Game metadata fetched for igdb {$ id }" );
119+ } catch (Exception $ e ) {
120+ $ this ->warn ("Game metadata fetch failed for igdb {$ id }: " .$ e ->getMessage ());
121+ }
107122 }
108123
109124 $ this ->alert ('Meta fetch queueing complete in ' .now ()->floatDiffInSeconds ($ start ).'s. ' );
0 commit comments