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

Validateur NeTEx : timeout de 15 minutes #4157

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Conversation

ptitfred
Copy link
Contributor

@ptitfred ptitfred commented Sep 2, 2024

Le validateur d'enRoute peut tomber dans un état incohérent et le statut d'une validation rester en pending éternellement. Ce patch implémente un timeout de notre côté. Il est configuré arbitrairement à 15 minutes pour l'instant.

Voir #4153.

Le validateur d'enRoute peut tomber dans un état incohérent et le statut d'une
validation rester en pending éternellement. Ce patch implémente un timeout de
notre côté. Il est configuré arbitrairement à 15 minutes pour l'instant.
@ptitfred ptitfred requested a review from a team as a code owner September 2, 2024 14:44
"pending" ->
case {get_datetime(response, "created_at"), get_datetime(response, "updated_at")} do
{{:ok, created_at, _}, {:ok, updated_at, _}} ->
{:pending, DateTime.diff(updated_at, created_at)}
Copy link
Member

Choose a reason for hiding this comment

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

Faut updater le @callback parce que :pending a changé. Pas vu par Dialyzer ? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

Bon, semble pas… 😢 Faut un @spec en plus ? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

En effet dialyzer est pas défrisé ; décevant...

@ptitfred ptitfred added this pull request to the merge queue Sep 3, 2024
Merged via the queue into master with commit 3c34291 Sep 3, 2024
4 checks passed
@ptitfred ptitfred deleted the netex-validator/timeout branch September 3, 2024 08:54
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.

2 participants