Skip to content

fix(backfill): ferme la connexion Mongo pour que le process se termine seul - #498

Merged
simonLouvet merged 1 commit into
masterfrom
fix/backfill-script-exit
Aug 25, 2026
Merged

simonLouvet merged 1 commit into
masterfrom
fix/backfill-script-exit

Conversation

@simonLouvet

Copy link
Copy Markdown
Collaborator

Le backfill exécuté via node -e require(...).work() (comme le font les cibles make backfill-orphans) restait bloqué : la connexion mongoose maintient la boucle d'événements ouverte, le process ne sort jamais.

Fix : le script ferme la connexion Mongo (mongoClient.getInstance().connection.close()) à la fin de work(). Sans impact fonctionnel sur le backfill lui-même (idempotent).

@simonLouvet
simonLouvet merged commit d298501 into master Aug 25, 2026
10 checks passed
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.

1 participant