Actions
Développement #114362
openmigrate_schemas: permettre une exécution en parallèle
Added by Benjamin Dauvergne about 1 month ago. Updated 3 days ago.
Start date:
03 February 2026
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
No
Description
Avec un paramètre --jobs N par défaut à un et avec une valeur par défaut définissable dans les settings.
Updated by Benjamin Dauvergne about 1 month ago
- Status changed from Nouveau to En cours
🤖 Une pull request concernant ce ticket a été ouverte :
- URL : https://git.entrouvert.org/entrouvert/hobo/pulls/313
- Titre : WIP: multitenant: add a parallel mode to migrate_schemas (#114362)
- Modifications : https://git.entrouvert.org/entrouvert/hobo/pulls/313/files
Updated by Benjamin Dauvergne about 1 month ago
- Status changed from En cours to Solution proposée
Updated by Benjamin Dauvergne about 1 month ago
- Related to Développement #110543: migrate_schemas, exécution de chacun dans un processus (?) added
Updated by Benjamin Dauvergne 23 days ago
Rebasé sur #81814, le code devient extrêmement simple ici.
Updated by Benjamin Dauvergne 23 days ago
- Related to Développement #114675: django-tenant-schemas: mettre en cache les app_labels() dans l'objet routeur added
Updated by Benjamin Dauvergne 23 days ago
L'exécution d'une migration sur une cinquantaine de tenants avec 4 jobs en // prend 32 secondes (pour une migration en avant) avec le patch dans #114675 sur django-tenant-schemas:
✦ ❯ time ~/envs/publik-env-py3/bin/passerelle-manage migrate_schemas --jobs 4 -v1 common 0005_userextraattributes ... real 11m36,234s user 11m22,298s sys 0m8,161s ✦ ❯ time ~/envs/publik-env-py3/bin/passerelle-manage migrate_schemas --jobs 4 -v1 .... === Running migrate for tenant test9.passerelle.com Operations to perform: Apply all migrations: actesweb, admin, adullact_pastell, airquality, api_entreprise, api_impot_particulier, api_particulier, arcgis, arpege_ecp, astech, astre_rest, astregs, atal, atal_rest, atos_genesys, auth, base, base_adresse, bbb, bdp, caldav, carl, cartads_cs, choosit, citeos, cityweb, clicrdv, cmis, common, contenttypes, cryptor, csvdatasource, esabora, esirius, esup_signature, family, feeds, filr_rest, franceconnect_data, gdc, gesbac, grandlyon_sen, holidays, jsondatastore, ldap, litteralis, matrix42, mdel, mdel_ddpacs, mellon, mgdis, mobyt, okina, opendatasoft, opengis, orange, ovh, oxyd, pdf, phonecalls, photon, plone_restapi, proxy, qrcode, r2p, rsa13, sector, sendethic, sessions, sfr_dmc, signal_arretes, sivin, sms, smsfactor, sne, soap, solis, teamnet_axel, toulouse_axel, toulouse_foederis, toulouse_smart, twilio, vivaticket Running migrations: Applying common.0006_role_slug... OK === migrate_schemas ETA: 2026-02-11 16:49:05.313138+01:00 (1/51) === migrate_schemas ETA: 2026-02-11 16:36:33.150450+01:00 (2/51) === migrate_schemas ETA: 2026-02-11 16:32:22.426239+01:00 (3/51) === migrate_schemas ETA: 2026-02-11 16:30:17.063853+01:00 (4/51) === migrate_schemas ETA: 2026-02-11 16:29:01.846370+01:00 (5/51) === migrate_schemas ETA: 2026-02-11 16:28:11.701374+01:00 (6/51) === migrate_schemas ETA: 2026-02-11 16:27:35.883497+01:00 (7/51) === migrate_schemas ETA: 2026-02-11 16:27:09.020089+01:00 (8/51) === migrate_schemas ETA: 2026-02-11 16:26:48.126322+01:00 (9/51) === migrate_schemas ETA: 2026-02-11 16:26:31.411313+01:00 (10/51) === migrate_schemas ETA: 2026-02-11 16:26:17.735388+01:00 (11/51) === migrate_schemas ETA: 2026-02-11 16:26:06.338788+01:00 (12/51) === migrate_schemas ETA: 2026-02-11 16:25:56.695511+01:00 (13/51) === migrate_schemas ETA: 2026-02-11 16:25:48.429844+01:00 (14/51) === migrate_schemas ETA: 2026-02-11 16:25:41.266264+01:00 (15/51) === migrate_schemas ETA: 2026-02-11 16:25:34.998134+01:00 (16/51) === migrate_schemas ETA: 2026-02-11 16:25:29.467428+01:00 (17/51) === migrate_schemas ETA: 2026-02-11 16:25:24.551245+01:00 (18/51) === migrate_schemas ETA: 2026-02-11 16:25:20.152555+01:00 (19/51) === migrate_schemas ETA: 2026-02-11 16:25:16.193736+01:00 (20/51) === migrate_schemas ETA: 2026-02-11 16:25:12.611943+01:00 (21/51) === migrate_schemas ETA: 2026-02-11 16:25:09.355768+01:00 (22/51) === migrate_schemas ETA: 2026-02-11 16:25:06.382740+01:00 (23/51) === migrate_schemas ETA: 2026-02-11 16:25:03.657465+01:00 (24/51) === migrate_schemas ETA: 2026-02-11 16:25:01.150210+01:00 (25/51) === migrate_schemas ETA: 2026-02-11 16:24:58.835820+01:00 (26/51) === migrate_schemas ETA: 2026-02-11 16:24:56.692869+01:00 (27/51) === migrate_schemas ETA: 2026-02-11 16:24:54.702986+01:00 (28/51) === migrate_schemas ETA: 2026-02-11 16:24:52.850334+01:00 (29/51) === migrate_schemas ETA: 2026-02-11 16:24:51.121194+01:00 (30/51) === migrate_schemas ETA: 2026-02-11 16:24:49.503611+01:00 (31/51) === migrate_schemas ETA: 2026-02-11 16:24:47.987126+01:00 (32/51) === migrate_schemas ETA: 2026-02-11 16:24:46.562549+01:00 (33/51) === migrate_schemas ETA: 2026-02-11 16:24:45.221772+01:00 (34/51) === migrate_schemas ETA: 2026-02-11 16:24:43.957609+01:00 (35/51) === migrate_schemas ETA: 2026-02-11 16:24:42.763680+01:00 (36/51) === migrate_schemas ETA: 2026-02-11 16:24:41.634285+01:00 (37/51) === migrate_schemas ETA: 2026-02-11 16:24:40.564334+01:00 (38/51) === migrate_schemas ETA: 2026-02-11 16:24:39.549252+01:00 (39/51) === migrate_schemas ETA: 2026-02-11 16:24:38.584924+01:00 (40/51) === migrate_schemas ETA: 2026-02-11 16:24:37.667636+01:00 (41/51) === migrate_schemas ETA: 2026-02-11 16:24:36.794028+01:00 (42/51) === migrate_schemas ETA: 2026-02-11 16:24:35.961055+01:00 (43/51) === migrate_schemas ETA: 2026-02-11 16:24:35.165943+01:00 (44/51) === migrate_schemas ETA: 2026-02-11 16:24:34.406169+01:00 (45/51) === migrate_schemas ETA: 2026-02-11 16:24:33.679428+01:00 (46/51) === migrate_schemas ETA: 2026-02-11 16:24:32.983614+01:00 (47/51) === migrate_schemas ETA: 2026-02-11 16:24:32.316790+01:00 (48/51) === migrate_schemas ETA: 2026-02-11 16:24:31.677184+01:00 (49/51) === migrate_schemas ETA: 2026-02-11 16:24:31.063162+01:00 (50/51) === migrate_schemas ETA: 2026-02-11 16:24:30.473221+01:00 (51/51) real 0m32,617s user 0m29,520s sys 0m1,270s
Updated by Benjamin Dauvergne 23 days ago
- Related to Développement #81814: migrate_schemas: refactoring général et optimisations added
Updated by Gael Pasgrimaud 3 days ago
Je suis ok avec le dernier commit mais c'est basé sur une autre PR qui fait beaucoup de changements pour, à priori, pas grand chose (Thomas notait un gain de 2s il y a deux ans)
Actions