Skip to content

Commit

Permalink
Fix soundcloud metadata index cron job (metabrainz#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 authored Aug 5, 2024
1 parent f76c131 commit 381a617
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions mbid_mapping/docker/crontab
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
# Rebuild the spotify metadata index every friday at 1 A.M.
0 1 * * 5 listenbrainz /usr/local/bin/python /code/mapper/manage.py build-spotify-metadata-index >> /code/mapper/cron-spotify-metadata-index.log 2>&1

# Rebuild the apple music metadata index every friday at 1 A.M.
0 1 * * 5 listenbrainz /usr/local/bin/python /code/mapper/manage.py build-apple-metadata-index >> /code/mapper/cron-apple-metadata-index.log 2>&1
# Rebuild the apple music metadata index every friday at 2 A.M.
0 2 * * 5 listenbrainz /usr/local/bin/python /code/mapper/manage.py build-apple-metadata-index >> /code/mapper/cron-apple-metadata-index.log 2>&1

# Rebuild the soundcloud music metadata index every friday at 3 A.M.
0 3 * * 5 listenbrainz /usr/local/bin/python /code/mapper/manage.py build-soundcloud-metadata-index >> /code/mapper/cron-soundcloud-metadata-index.log 2>&1

# Rebuild similar tag data at 2am sundays
0 2 * * 0 listenbrainz /usr/local/bin/python /code/mapper/manage.py build-tag-similarity >> /code/mapper/cron-tag-similarity.log 2>&1
Expand Down
2 changes: 1 addition & 1 deletion mbid_mapping/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def build_apple_metadata_index(use_lb_conn):

@cli.command()
@click.option("--use-lb-conn/--use-mb-conn", default=True, help="whether to create the tables in LB or MB")
def build_apple_metadata_index(use_lb_conn):
def build_soundcloud_metadata_index(use_lb_conn):
"""
Build the Soundcloud Music metadata index that LB uses
"""
Expand Down

0 comments on commit 381a617

Please sign in to comment.