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

Compile list of state-checks to short-circuit on, and then gate the various operations behind them #2

Open
StevenTammen opened this issue Dec 10, 2023 · 0 comments

Comments

@StevenTammen
Copy link
Owner

StevenTammen commented Dec 10, 2023

Right now, especially for the larger scripts that call multiple functions, it is possible to "half-succeed", which will leave you in a state somewhere between where you started and what you wanted.

For example, currently build_video.py (the main compound script) might correctly process topic transition video segments, but then fail in the timestamps function if there is no playlist frontmatter variable in the content file. (Necessary for correctly building the YouTube description).

What would be more desirable is to make all scripts atomic, so that they either fully succeed or don't run at all (short-circuit upfront). This ought to be possible with a bit of thought and refactor -- checking the error cases upfront.

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

1 participant