music.cloud package

Submodules

music.cloud.function module

music.cloud.function.run_user_playlist_function(username, playlist_name)

Queue serverless playlist update for user

music.cloud.function.update_tag(username, tag_id)

Queue serverless tag update for user

music.cloud.tasks module

music.cloud.tasks.refresh_all_user_playlist_stats()

“Create user playlist stats refresh task for all users

music.cloud.tasks.refresh_playlist_task(username, playlist_name, delay=0)

Create user playlist stats refresh tasks

music.cloud.tasks.refresh_user_playlist_stats(username)

Refresh all playlist stats for given user, environment dependent

music.cloud.tasks.refresh_user_stats_task(username, delay=0)

Create user playlist stats refresh task

music.cloud.tasks.run_user_playlist_task(username, playlist_name, delay=0)

Create tasks for a users given playlist

music.cloud.tasks.update_all_user_playlists()

Create user playlist refresh task for all users

music.cloud.tasks.update_all_user_tags()

Create user tag refresh task sfor all users

music.cloud.tasks.update_playlists(username)

Refresh all playlists for given user, environment dependent

Module contents

Infrastucture code include handing off tasks to Cloud Tasks or Cloud Functions

music.cloud.offload_or_run_user_playlist(username: str, playlist_name: str)
music.cloud.queue_run_user_playlist(username: str, playlist_name: str)