-
Notifications
You must be signed in to change notification settings - Fork 452
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
Added watch folder again #8306
Added watch folder again #8306
Conversation
0b74598
to
eee688a
Compare
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'm not sure I understand the new logic. Why are we removing downloads now?
Also, why use replace_task
? What's wrong with processing torrents one at a time?
🤔 In retrospect, maybe this was overly ambitious. I turned this into folder synchronization, while all we needed was a watch folder. I'll remove this.
If the previous task is still pending and we re-enter the loop (i.e., for some reason this has not completed after 10 seconds), as opposed to catching a |
eee688a
to
5087eba
Compare
@egbertbouman fixed up. If you don't accept my reasoning and/or feel strongly about avoiding |
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.
The interval_runner
of register_task
waits 10s seconds in between tasks, so if you simply await it (and don't create an additional task), there is no problem. Having said that, I don't have strong feelings about this. I was just curious.
I don't really see how you could avoid creating additional tasks, with |
You could just make |
Ah! That's the missing link. I never once thought about making |
Fixes #8280
This PR:
watch_folder_corrupt_file
notification.