jamespfennell / transiter

Web service for transit data
https://demo.transiter.dev
MIT License
59 stars 7 forks source link

Refactor the update manager #54

Closed jamespfennell closed 4 years ago

jamespfennell commented 4 years ago

The main execute_feed_update function is tedious. It would be better to use a "steps" pattern, where each "step" is an object that has a perform_step method and a can_continue method. When performing each step, we check for an expected exception and error out correctly if needed, and similarly if after the step the can_continue method is false.

This is nice-to-have, and would be good to do before other code in the update manager is changed.