@@ -245,16 +245,10 @@ def deprecated_config_file_used_notification():
245
245
if build and build .deprecated_config_used ():
246
246
projects .add (project .slug )
247
247
248
- n_projects = len (projects )
249
- log .info (
250
- "Sending deprecated config file notification." ,
251
- query_seconds = (datetime .datetime .now () - start_datetime ).seconds ,
252
- projects = n_projects ,
253
- )
254
-
255
248
# Store all the users we want to contact
256
249
users = set ()
257
250
251
+ n_projects = len (projects )
258
252
queryset = Project .objects .filter (slug__in = projects ).order_by ("id" )
259
253
for i , project in enumerate (queryset .iterator ()):
260
254
if i % 500 == 0 :
@@ -263,6 +257,7 @@ def deprecated_config_file_used_notification():
263
257
progress = f"{ i } /{ n_projects } " ,
264
258
current_project_pk = project .pk ,
265
259
current_project_slug = project .slug ,
260
+ users_found = len (users ),
266
261
time_elapsed = (datetime .datetime .now () - start_datetime ).seconds ,
267
262
)
268
263
@@ -278,7 +273,7 @@ def deprecated_config_file_used_notification():
278
273
for i , user in enumerate (queryset .iterator ()):
279
274
if i % 500 == 0 :
280
275
log .info (
281
- "Querying all the users we want to contact ." ,
276
+ "Sending deprecated config file notification to users ." ,
282
277
progress = f"{ i } /{ n_users } " ,
283
278
current_user_pk = user .pk ,
284
279
current_user_username = user .username ,
0 commit comments