Comments (3)
Note: I have no experience with go, but I do have experience with other languages, so while I am confident in my ability to find and provide a solution I am not comfortable committing anything due to my lack of experience with the go language, however this issue hasn't been resolved and it feels like a simple solution.
Line 339 in 5c66ab8
targetCounter := 0
for {
Lines 357 to 358 in 5c66ab8
if targetCounter == 4 {
// sleep indefinitely
select{}
} else {
counter += 1
time.Sleep(30 * time.Second)
continue
}
I would much prefer this (and the others) to be at least a minute maybe 3 as suggested by OP
Lines 364 to 365 in 5c66ab8
from autoscan.
The main reason why Autoscan halts any scanning when a target is down is because we want to prevent two things:
- Targets not unnecessarily scanning the same path multiple times.
- Targets not being "left out" because they're unavailable at the time.
@UnknownWitcher the indefinite sleep is not necessarily related to this issue. Autoscan will only reach that state when the target is throwing a fatal error, which can only occur if there are setup-related problems (and thus only an adjustment to the config can make a difference).
Autoscan's current behaviour is to check Target health every 15 seconds. By specifically checking for health (instead of simply sending other scans), no duplicate scans occur. If all targets are found to be healthy, scanning will continue!
Now, I hear you wonder:
Can't Autoscan simply keep track of which scans have been successfully processed by certain targets? So if a target is unavailable, only that target will receive scans at a later date?
We did think about this while designing Autoscan, but by linking scans to targets, the database becomes dependent on the config. We try to avoid this as much as possible as it can cause issues when someone's config changes.
from autoscan.
Hey @m-rots thanks for getting back to me, that's completely understandable and yes I did have that thought lol, anyway, I ended up running the container with "depends_on - plex" to avoid this issue.
from autoscan.
Related Issues (20)
- Certain library keeps scanning HOT 1
- Question about disabling Plex HOT 3
- Query Plex API to wait until nothing is being scanned before sending a new entry
- Readarr trigger stopped working suddenly
- Have Sonarr and Radarr as a target?
- Support Dropbox
- Multiple rewrites don't work past the first value HOT 2
- "Other Videos" in Plex not being found when using inotify HOT 1
- Lidarr | All notifications are unavailable due to failures HOT 3
- Since 7/27 no longer receiving common from sonarr and a-train
- FTL Failed initialising target with HTTPS plex URL HOT 3
- Allow Anchor rewrite
- latest plex version 1.32.7 breaks autoscan HOT 6
- Fatal error occurred while processing targets, processor stopped, triggers will continue... error="scan: 524 HOT 1
- Failure to start for users with no home directory HOT 1
- Tdarr plugin HOT 1
- Plex does not "scan the whole library" when a file is added, so what is the benefit of autoscan HOT 3
- Mylar3 and Komga
- What is format for two emby servers ? HOT 1
- Add triggers for rename and artist delete and album delete for lidarr HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autoscan.