C9Glax / tranga

Docker-Container to monitor (Manga) Scanlation-Sites for download new chapters.
GNU General Public License v3.0
138 stars 13 forks source link

[It broke]: Looking for chapter updates - inactive for 5 minutes #105

Closed Charles-Em closed 8 months ago

Charles-Em commented 8 months ago

What is broken?

Hello,

I'm don't know if this is normal or not. I was wondering why the jobs took so long to get replaced by the next one. (Never really paid attention to that before)

Is is intented behavior ? Or is there an underlying issue ?

Log-output

[01/21/2024 09:15:14.276]       JobBoss | Next job in -00:00:02.2970022 Tranga.Jobs.UpdateMetadata-ZGFuZGFkYW4yMDIx
[01/21/2024 09:15:17.39 ] ChromiumDownl | Page loaded.
[01/21/2024 09:15:17.190] ChromiumDownl | Waiting 0.9904934 seconds
[01/21/2024 09:15:20.206] ChromiumDownl | Page loaded.
[01/21/2024 09:15:20.216]      Mangasee | Saving cover to /usr/share/tranga-api/imageCache/638414253171907335.jpg
[01/21/2024 09:20:06.25 ]       JobBoss | Tranga.Jobs.UpdateMetadata-ZGFuZGFkYW4yMDIx Manga: Publication Dandadan ZGFuZGFkYW4yMDIx inactive for more than 5 minutes. Cancelling.
[01/21/2024 09:20:06.25 ] UpdateMetadat | Cancelling Tranga.Jobs.UpdateMetadata-ZGFuZGFkYW4yMDIx Manga: Publication Dandadan ZGFuZGFkYW4yMDIx
[01/21/2024 09:20:06.125]       JobBoss | Removing Tranga.Jobs.UpdateMetadata-ZGFuZGFkYW4yMDIx Manga: Publication Dandadan ZGFuZGFkYW4yMDIx
[01/21/2024 09:20:06.125] UpdateMetadat | Cancelling Tranga.Jobs.UpdateMetadata-ZGFuZGFkYW4yMDIx Manga: Publication Dandadan ZGFuZGFkYW4yMDIx
[01/21/2024 09:20:06.125]       JobBoss | Deleting Job-file /usr/share/tranga-api/jobs/Tranga.Jobs.UpdateMetadata-ZGFuZGFkYW4yMDIx.json

Additional stuff

No response

C9Glax commented 8 months ago

[01/21/2024 09:20:06.25 ] JobBoss | Tranga.Jobs.UpdateMetadata-ZGFuZGFkYW4yMDIx Manga: Publication Dandadan ZGFuZGFkYW4yMDIx inactive for more than 5 minutes. Cancelling. Very much intended.

Charles-Em commented 8 months ago

Ok, there is something that I'm missing there. You mentioned in an other thread that you monitor 130 mangas and that the delay is 1s. Meaning you check them all in 2+ minutes

But I get stuck for 5 minutes on each manga if there is no new chapter. Meaning I check 12 per hours on a connector.

C9Glax commented 8 months ago

Getting stuck is a seperate issue. The 5Minutes is a hard limit to avoid getting completely stuck. Normally you should have only 1 second of delay.

Charles-Em commented 8 months ago

Ok then I do have an issue, all my jobs are stuck 5 minutes if there is no chapter to grab. For exemple, filtering on mangasee source (first line of each manga rotation) they all take 5minutes and are stop by the inactive failsafe.

[01/30/2024 06:03:27.131]      Mangasee | Getting new Chapters for Publication Kingdom a2luZ2RvbTIwMDY=
[01/30/2024 06:08:36.823]      Mangasee | Getting new Chapters for Publication Jujutsu Kaisen anVqdXRzdWthaXNlbjIwMTg=
[01/30/2024 06:13:39.744]      Mangasee | Getting new Chapters for Publication Spy x Family c3B5eGZhbWlseTIwMTk=
[01/30/2024 06:18:41.246]      Mangasee | Getting new Chapters for Publication World Trigger d29ybGR0cmlnZ2VyMjAxMw==
[01/30/2024 06:23:44.90 ]      Mangasee | Getting new Chapters for Publication The Skeleton Soldier Failed to Defend the Dungeon dGhlc2tlbGV0b25zb2xkaWVyZmFpbGVkdG9kZWZlbmR0aGVkdW5nZW9uMjAxNg==
[01/30/2024 06:38:09.672]      Mangasee | Getting new Chapters for Publication Vinland Saga dmlubGFuZHNhZ2EyMDA1
[01/30/2024 06:29:01.702]      Mangasee | Getting new Chapters for Publication One Piece b25lcGllY2UxOTk3
[01/30/2024 06:43:10.515]      Mangasee | Getting new Chapters for Publication Gantz:E Z2FudHplMjAyMA==
[01/30/2024 06:48:11.94 ]      Mangasee | Getting new Chapters for Publication Drifters ZHJpZnRlcnMyMDA5
[01/30/2024 06:53:11.699]      Mangasee | Getting new Chapters for Publication Tokyo Revengers - A Letter from Keisuke Baji dG9reW9yZXZlbmdlcnNhbGV0dGVyZnJvbWtlaXN1a2ViYWppMjAyMg==
[01/30/2024 06:58:12.299]      Mangasee | Getting new Chapters for Publication Kaiju No. 8 a2FpanVubzIwMjA=
C9Glax commented 8 months ago

if there is no chapter to grab.

Is that an assumption or something you observed? Would make finding the issue a lot easier

Charles-Em commented 8 months ago

Something I observed, when there is a chapter, it grabs it without any issue.

C9Glax commented 8 months ago

Nice! Will look into it in a few hours

C9Glax commented 8 months ago

Okay if there wasn't any change in Meta-Data (Including new chapters) then the task wouldn't end. So cuttingedge should now be fixed :)

Charles-Em commented 8 months ago

I'm on latest and not cuttingedge, fix pushed also? Will cehck tomorrow as I don't have access to the computer

C9Glax commented 8 months ago

Yea just did a merge 👍🏼

Charles-Em commented 8 months ago

Ok, looking good on my side thanks