Merge pull request 'fix: Radarr ManualImport-Timeout für große NAS-Dateien' (#4) from fix/fileflows-radarr-import-timeout-20260912 into main

This commit is contained in:
sascha 2026-09-12 19:52:49 +02:00
commit a4adf7a082
2 changed files with 12 additions and 2 deletions

View file

@ -4,7 +4,7 @@
"DateCreated": "2026-05-13T06:59:27Z", "DateCreated": "2026-05-13T06:59:27Z",
"DateModified": "2026-07-15T18:19:38Z", "DateModified": "2026-07-15T18:19:38Z",
"Enabled": true, "Enabled": true,
"Revision": 14, "Revision": 15,
"Type": 0, "Type": 0,
"ReadOnly": false, "ReadOnly": false,
"Default": false, "Default": false,
@ -352,7 +352,7 @@
"ImportPath": "/tdarr/converted/video/", "ImportPath": "/tdarr/converted/video/",
"UseUnmappedPath": false, "UseUnmappedPath": false,
"MoveMode": true, "MoveMode": true,
"TimeOut": 300, "TimeOut": 900,
"Color": "" "Color": ""
} }
}, },

View file

@ -26,6 +26,16 @@ class FlowImportFailureRoutingTests(unittest.TestCase):
with self.subTest(node=node["Uid"]): with self.subTest(node=node["Uid"]):
self.assertEqual(node["ErrorConnection"]["InputNode"], fail_node["Uid"]) self.assertEqual(node["ErrorConnection"]["InputNode"], fail_node["Uid"])
def test_fhd_radarr_import_timeout_handles_large_nas_copy(self):
flow = json.loads(FLOW.read_text())
fhd_radarr = next(
part
for part in flow["Parts"]
if part.get("Name") == "Radarr - Trigger Manual Import"
and part.get("Model", {}).get("ImportPath") == "/tdarr/converted/video/"
)
self.assertGreaterEqual(fhd_radarr["Model"]["TimeOut"], 900)
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()