Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync.tasks.download_media_metadata not mapped #588

Open
tcely opened this issue Dec 20, 2024 · 2 comments
Open

sync.tasks.download_media_metadata not mapped #588

tcely opened this issue Dec 20, 2024 · 2 comments

Comments

@tcely
Copy link
Contributor

tcely commented Dec 20, 2024

I noticed that my scheduled tasks on the dashboard and tasks page disagreed. So, I tracked it down to these tasks that have errors.

The error is because they are "members only" videos (#584).

def map_task_to_instance(task):
'''
Reverse-maps a scheduled backgrond task to an instance. Requires the task name
to be a known task function and the first argument to be a UUID. This is used
because UUID's are incompatible with background_task's "creator" feature.
'''
TASK_MAP = {
'sync.tasks.index_source_task': Source,
'sync.tasks.check_source_directory_exists': Source,
'sync.tasks.download_media_thumbnail': Media,
'sync.tasks.download_media': Media,
'sync.tasks.save_all_media_for_source': Source,
}

@meeb My question is: Why is this task not in the map?

@RichardHyde
Copy link
Contributor

RichardHyde commented Dec 21, 2024

I've just added pull request to fix #584 which adds the sync.tasks.download_media_metadata to the map

@tcely
Copy link
Contributor Author

tcely commented Dec 21, 2024

@RichardHyde I've just reviewed two of your recent pull requests. Thanks for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants