Projet

Général

Profil

Bug #63954

on ne voit pas les migrations défiler dans journald, tout apparait d'un coup

Ajouté par Thomas Noël il y a environ 2 ans. Mis à jour il y a environ 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
15 avril 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Avec un «journalctl -fu wcs» on aimerait voir l'avancement d'un migrate_schemas tenant par tenant quand ça prend du temps, mais en fait tout apparait d'un seul coup dans le journal, une fois tous les tenants migrés :

avril 15 01:58:04 wcs uwsgi[26305]: VACUUM: unix socket /run/wcs/wcs.sock removed.
avril 15 01:58:04 wcs uwsgi[26305]: VACUUM: unix socket /run/wcs/stats.sock (stats) removed.
avril 15 01:58:04 wcs systemd[1]: wcs.service: Succeeded.
avril 15 01:58:04 wcs systemd[1]: Stopped w.c.s..
avril 15 01:58:04 wcs systemd[1]: Starting w.c.s....
avril 15 02:07:09 wcs wcs-manage[15690]: Running migrations for ville1.fr
avril 15 02:07:09 wcs wcs-manage[15690]: Running migrations for ville2.fr
avril 15 02:07:09 wcs wcs-manage[15690]: Running migrations for ville3.fr
avril 15 02:07:09 wcs wcs-manage[15690]: Running migrations for ville4.fr
...

Il doit manquer un "flush" (ou équivalent) quelque part.


Fichiers

Révisions associées

Révision 0438f7fb (diff)
Ajouté par Thomas Noël il y a environ 2 ans

misc: flush output in migrate command (#63954)

Historique

#1

Mis à jour par Thomas Noël il y a environ 2 ans

Surprenant, cela n'est pas visible sur l'infra de dev (ou je pensais tester un flush=True sur le print)

avril 15 02:33:55 wcs systemd[1]: Stopped w.c.s..
avril 15 02:33:55 wcs systemd[1]: Starting w.c.s....
avril 15 02:33:56 wcs wcs-manage[29158]: Running migrations for demandes-signalpublik.dev.entrouvert.org
avril 15 02:33:57 wcs wcs-manage[29158]: Running migrations for demarches-alpha.dvl.entrouvert.org
avril 15 02:33:58 wcs wcs-manage[29158]: Running migrations for demarches-publikcondorcet.dev.entrouvert.org
avril 15 02:33:59 wcs wcs-manage[29158]: Running migrations for demarches-signalpublik-matrice.dev.entrouvert.org
avril 15 02:34:00 wcs wcs-manage[29158]: Running migrations for demarches-signalpublik-pcros.dev.entrouvert.org
avril 15 02:34:01 wcs wcs-manage[29158]: Running migrations for demarches-signalpublik-test-deux.dev.entrouvert.org
avril 15 02:34:02 wcs wcs-manage[29158]: Running migrations for demarches-signalpublik-test-un.dev.entrouvert.org
avril 15 02:34:03 wcs wcs-manage[29158]: Running migrations for demarches-signalpublik-test-zero.dev.entrouvert.org
avril 15 02:34:04 wcs wcs-manage[29158]: Running migrations for demo.dev.au-quotidien.com
avril 15 02:34:05 wcs wcs-manage[29158]: Running migrations for fsb.dev.au-quotidien.com
avril 15 02:34:06 wcs wcs-manage[29158]: Running migrations for imio.dev.au-quotidien.com
#2

Mis à jour par Thomas Noël il y a environ 2 ans

Testé avec succès sur l'environnement de recette.

#3

Mis à jour par Frédéric Péters il y a environ 2 ans

  • Statut changé de Solution proposée à Solution validée
#4

Mis à jour par Thomas Noël il y a environ 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 0438f7fbeaace7f049ea59031a19499f6747a1d0
Author: Thomas NOËL <tnoel@entrouvert.com>
Date:   Fri Apr 15 02:40:26 2022 +0200

    misc: flush output in migrate command (#63954)

#5

Mis à jour par Transition automatique il y a environ 2 ans

  • Statut changé de Résolu (à déployer) à Solution déployée
#6

Mis à jour par Transition automatique il y a presque 2 ans

Automatic expiration

Formats disponibles : Atom PDF