Skip to content
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

BlissFfmpegJob (BlissChangeEncodingJob): skipping existing target problematic #438

Open
albertz opened this issue Aug 8, 2023 · 1 comment

Comments

@albertz
Copy link
Member

albertz commented Aug 8, 2023

I think this logic here is problematic:

if not os.path.exists(target):

Why do we have this? This job does not seem to be resumable? Or is it?

In case SGE kills the job (e.g. runs out of time or OOM), FFMpeg would leave a partially finished file. Then in the next run, it will leave it unfinished.

(@JackTemaki Could this maybe explain your observation that sequence lengths were not correct?)

Do we intend to have this resumable? Then, one potential fix:

  • first write it to a temp dir
  • then copy it over to the out dir, but still use a temp filename (this copy might be interrupted as well)
  • then use os.rename to the real final output name. This is atomic. Either it completes or not.

If we never intend to have it resumable, it's not really needed. But it might anyway be a good idea to follow this logic.

@JackTemaki
Copy link
Contributor

The job is not marked resumable for that reason, and I think we should remove that code that would theoretically allow to do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants