-
Notifications
You must be signed in to change notification settings - Fork 278
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
Remove forcedSearchQueueItem, in favor of using backlogQueueItem for single ep searches #6718
Conversation
Forced searches are now using the BacklogQueueItem. But the search is placed in the forced_search_queue_scheduler scheduler. This means that a scheduled proper, backlog or daily search will not interfere with a forced search
DeepCode analyzed this pull request. Click to see more details. |
DeepCode analyzed this pull request. Click to see more details. |
…move-forced-search # Conflicts: # medusa/server/api/v2/search.py
@medariox this one is next. If you have some time? |
medusa/search/queue.py
Outdated
|
||
# Set the search_type for the result. | ||
result.search_type = SearchType.FORCED_SEARCH | ||
search_result = search_providers(self.show, self.segment, True, True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to use named arguments here, especially for the Trues. It makes it much more readable.
medusa/search/queue.py
Outdated
if isinstance(self.currentItem, (ForcedSearchQueueItem, FailedQueueItem)): | ||
"""Test of a forced search is currently running (can be backlog, manual or failed search). | ||
|
||
it doesn't check what's in queue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be capitalized for consistency.
Forced searches are now using the BacklogQueueItem.
But the search is placed in the forced_search_queue_scheduler scheduler.
This means that a scheduled proper, backlog or daily search will not interfere with a forced search
used in #6709