hofstadter-io / hof

Framework that joins data models, schemas, code generation, and a task engine. Language and technology agnostic.
https://docs.hofstadter.io
Apache License 2.0
522 stars 37 forks source link

hof/mod: add retry to fetching / syncing repos #354

Open verdverm opened 1 year ago

verdverm commented 1 year ago

What feature would you like?

automatic or easy to use retry for fetch failures, mostly invisible to users

Is your feature request related to a problem you are experiencing? Please describe.

github clones being flakey at the time of writing, generally remotes get on the struggle bus sometimes

Describe alternatives you've considered

adding retry logic around hof mod ... commands

this is the task we can handle for everyone, instead of everyone needing to implement the same thing

Additional context

similar in effect to what we do with our formatter Dockerfile retry snippets, but in hof/mod

verdverm commented 1 year ago

or maybe not, we are going to be deprecating git backed modules most likely, so let's see how OCI goes, maybe the underlying code has built-in retry already for us 🤞