priority: 15: download_media

This commit is contained in:
tcely 2025-04-06 17:23:56 -04:00 committed by GitHub
parent d769f39a86
commit 8e3523ae9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -510,7 +510,7 @@ def download_media_thumbnail(media_id, url):
return True
@background(schedule=dict(run_at=60), remove_existing_tasks=True)
@background(schedule=dict(priority=15, run_at=60), remove_existing_tasks=True)
def download_media(media_id):
'''
Downloads the media to disk and attaches it to the Media instance.