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

Mission - Il y a des mission dupliquées dans la table missions #4012

Open
louptheron opened this issue Jan 6, 2025 · 1 comment
Open

Mission - Il y a des mission dupliquées dans la table missions #4012

louptheron opened this issue Jan 6, 2025 · 1 comment
Assignees
Labels
bug Something isn't working dev

Comments

@louptheron
Copy link
Collaborator

louptheron commented Jan 6, 2025

Constat

Le front envoie deux POST sur /missions à 600ms d'intervalle :

  • Jan 6, 2025 @ 07:51:17.134
{"id":null,"missionTypes":["SEA"],"controlUnits":[{"id":10141,"administration":"DIRM / DM","isArchived":false,"name":"PAM Gyptis","resources":[],"contact":null}],"openBy":null,"completedBy":null,"observationsCacem":null,"observationsCnsp":null,"facade":null,"geom":null,"startDateTimeUtc":"2025-01-06T07:00:00Z","endDateTimeUtc":"2025-01-17T16:00:00Z","missionSource":"MONITORFISH","hasMissionOrder":true,"isUnderJdp":false,"isGeometryComputedFromControls":true}
  • Jan 6, 2025 @ 07:51:17.725
{"id":null,"missionTypes":["SEA"],"controlUnits":[{"id":10141,"administration":"DIRM / DM","isArchived":false,"name":"PAM Gyptis","resources":[],"contact":null}],"openBy":null,"completedBy":null,"observationsCacem":null,"observationsCnsp":null,"facade":null,"geom":null,"startDateTimeUtc":"2025-01-06T07:00:00Z","endDateTimeUtc":"2025-01-17T16:00:00Z","missionSource":"MONITORFISH","hasMissionOrder":true,"isUnderJdp":false,"isGeometryComputedFromControls":true}

Il semblerait que le 1er appel API de création de la mission ne retourne jamais (il n'y a pas de log RESPONSE POST associé). C'est ce qui déclenche la race condition : comme il n'y a pas de retour d'API, le front re-POST sans id de mission.

Screenshot des logs sur Env :
Screenshot from 2025-01-06 17-04-01

Identifiants (id) :

  • 1ère mission : 20035
  • 2ème mission : 20036

Solution

Creuser s'il y a des soucis de latence ou d'appels en erreur sur POST /missions ?

@louptheron louptheron added bug Something isn't working dev labels Jan 6, 2025
@louptheron louptheron self-assigned this Jan 6, 2025
@github-project-automation github-project-automation bot moved this to To Be Specified in Board MonitorFish Jan 6, 2025
@louptheron louptheron moved this from To Be Specified to To do in Board MonitorFish Jan 6, 2025
@louptheron
Copy link
Collaborator Author

Cela semble venir du fait que l'API MonitorEnv mettait du temps à répondre, cf. la PR MTES-MCT/monitorenv#1970.
En attente de la MEP pour voir si les soucis sont résolus.

@louptheron louptheron moved this from To do to In progress in Board MonitorFish Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dev
Projects
Status: In progress
Development

No branches or pull requests

1 participant