bazarr icon indicating copy to clipboard operation
bazarr copied to clipboard

Sync tasks queue cut short

Open rmichelena opened this issue 2 years ago • 8 comments

Bazarr 1.0.4 Newly uploaded tv show I upload 10 subtitles to Bazarr In tools (per show, not per episode) I select the 10 episodes and choose "sync" it only does the first 4 or 5 (actually the last, since the list is inverse) nothing shows in the log (since 1.0.4, logs are not showing sync events, at least not manually triggered ones)

rmichelena avatar May 11 '22 17:05 rmichelena

https://wiki.bazarr.media/Troubleshooting/FAQ/#synchronization-failed

morpheus65535 avatar May 15 '22 13:05 morpheus65535

I've just tested out and manual sync are showing properly in history when they are successful.

morpheus65535 avatar May 15 '22 13:05 morpheus65535

If I select 2 or 3 or maybe even 4 or 5 subtitles and press “sync”, it works. But if I select more, it’ll only sync the first (latest) 4 or 5. Then I have to go back and select the remaining ones and sync them. And it does sync them, so it’s not subs that fail to sync… it’s as if the queue times out or something like that. Files are not local (they’re on Google Drive) so each sync might take longer than usual, maybe that’s a factor.

rmichelena avatar May 15 '22 18:05 rmichelena

History does show the ones that were synced, that’s how I know it didn’t sync all of them. Log does not show anything regarding sync events, neither successes nor failures. And it’s not that it synced them and didn’t report in history, because when I reselect those and actually sync them and they do show in history, there are offsets reported.

rmichelena avatar May 15 '22 19:05 rmichelena

I've been trying to reproduce your issue but I'm unable: image As you said, it could be releated to your cloud setup. I have no way to test that.

morpheus65535 avatar May 15 '22 20:05 morpheus65535

I've seen this issue all the time. I run Bazarr on a small device. For each subtitle, it takes ~5 minutes to sync. If I select all episodes of the series, only the latest episode is submitted for syncing (observed from the developer tools). I guess the batching is implemented at the client side. Since the first sync request timeouts, the subsequent requests are never sent to the server.

kfstorm avatar Jun 05 '22 04:06 kfstorm

I've seen this issue all the time. I run Bazarr on a small device. For each subtitle, it takes ~5 minutes to sync. If I select all episodes of the series, only the latest episode is submitted for syncing (observed from the developer tools). I guess the batching is implemented at the client side. Since the first sync request timeouts, the subsequent requests are never sent to the server.

Can you confirm if you're facing the same issue with latest 1.0.5-beta? We've implemented a new UI and this part may have been reworked.

morpheus65535 avatar Jun 06 '22 10:06 morpheus65535

You'll have the issue with latest beta also. Currently the UI send one by one the sync requests. We must rework that part to send them (and all tools query) at once. @LASER-Yi and I will see how it can be done.

morpheus65535 avatar Jun 15 '22 10:06 morpheus65535

Would such a rework allow to queue syncing of all subtitles for all movies/shows?

erikburman avatar Oct 06 '22 09:10 erikburman

Would such a rework allow to queue syncing of all subtitles for all movies/shows?

No.

morpheus65535 avatar Oct 06 '22 10:10 morpheus65535

yeah I'm also having the same issue

theg00s3 avatar Nov 29 '22 08:11 theg00s3

yeah I'm also having the same issue

It's not really an issue, it's by design. We must refactor stuff to make this possible.

morpheus65535 avatar Nov 29 '22 11:11 morpheus65535

I'll close this issue but I'll implement a jobs queue with UI in 1.2.0. Frontend jobs will be send to backend and won't depend on browser context.

morpheus65535 avatar Dec 12 '22 19:12 morpheus65535