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

Do not unregister datasets with a 404'ed base schedule at time of startup #109

Merged
merged 28 commits into from
Jan 18, 2021

Conversation

thbar
Copy link
Collaborator

@thbar thbar commented Dec 22, 2020

As seen in #107, if at start time, a given resource is not available, it will be removed from the available resources forever.

In this PR, we instead implement a mechanism to ensure the initial failure has a chance to recover later.

It must be noted thought that it will currently take 24 hours before the dataset is retried (see #111), something we will improve in a separate PR.

Co-authored-by: Antoine D <antoine.desbordes@gmail.com>
@thbar
Copy link
Collaborator Author

thbar commented Dec 22, 2020

For now, just a failing test to reproduce the issue has been added, to start playing around.

src/routes/siri.rs Outdated Show resolved Hide resolved
@antoine-de
Copy link
Member

we can remove the draft mode no?

I found a way to hide the GetDataset complexity, but I'll add it in a separate PR once this is merged

@thbar thbar changed the title [WIP] Properly manage resources which are 404 at time of startup Do not unregister datasets with a 404'ed base schedule at time of startup Jan 18, 2021
@thbar thbar marked this pull request as ready for review January 18, 2021 11:09
@thbar
Copy link
Collaborator Author

thbar commented Jan 18, 2021

@antoine-de sorry, I just understood now what you meant by removing the draft mode, thought you were referring to something in the code. I've moved out of draft mode, thanks!

Copy link
Member

@antoine-de antoine-de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

src/actors/realtime_update_actors.rs Outdated Show resolved Hide resolved
src/actors/realtime_update_actors.rs Outdated Show resolved Hide resolved
tests/entry_point_test.rs Outdated Show resolved Hide resolved
@thbar thbar merged commit 791c4eb into master Jan 18, 2021
@thbar thbar deleted the improve-start-on-error branch January 18, 2021 14:47
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

Successfully merging this pull request may close these issues.

None yet

3 participants