@@ -357,7 +357,7 @@ def request_similar_users(max_num_users):
357
357
" (the limit is instructive. upto 2x recordings may be returned than"
358
358
" the limit)." , required = True )
359
359
@click .option ("--skip" , type = int , help = "the minimum difference threshold to mark track as skipped" , required = True )
360
- def request_similar_recordings (session , contribution , threshold , limit , skip ):
360
+ def request_similar_recordings_mlhd (session , contribution , threshold , limit , skip ):
361
361
""" Send the cluster a request to generate similar recordings index. """
362
362
send_request_to_spark_cluster (
363
363
"similarity.recording.mlhd" ,
@@ -569,3 +569,12 @@ def cron_request_similarity_datasets(ctx):
569
569
threshold = 10 , limit = 100 , skip = 30 , production = True )
570
570
ctx .invoke (request_similar_artists , days = 7500 , session = 300 , contribution = 5 ,
571
571
threshold = 10 , limit = 100 , skip = 30 , production = True )
572
+
573
+
574
+ @cli .command (name = 'cron_request_popularity' )
575
+ @click .pass_context
576
+ def cron_request_popularity (ctx ):
577
+ for entity in ["artist" , "recording" , "release" , "release_group" ]:
578
+ ctx .invoke (request_popularity , mlhd = False , entity = entity )
579
+ for entity in ["recording" , "release" , "release_group" ]:
580
+ ctx .invoke (request_per_artist_popularity , mlhd = False , entity = entity )
0 commit comments