Bug #38793
les after_job ne peuvent pas être exécutés sur une action de masse
Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
06 janvier 2020
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Les actions de masse se déroulent en after_job.
Et donc, si une action a de l'asynchrone via after_job (par exemple "modifier le profil" qui va appeler l'idp) ça plante : on ne peut pas avoir d'after job dans un after job.
Exception: type = '<type 'exceptions.AttributeError'>', value = ''NoneType' object has no attribute 'add_after_job'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/wcs/wf/profile.py", line 215, in perform_idp 213 get_logger().error('failed to update profile for user %r', user) 214 > 215 get_response().add_after_job(str(N_('Updating user profile')), after_job) 216 217
Fichiers
Révisions associées
Historique
Mis à jour par Thomas Noël il y a plus de 4 ans
- Fichier 0001-wf-profile-do-not-use-after-jobs-when-there-s-no-htt.patch 0001-wf-profile-do-not-use-after-jobs-when-there-s-no-htt.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Emmanuel Cazenave il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Thomas Noël il y a plus de 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit 4b8c74fd95423aa078f0ce4a0b2799a6c804783b Author: Thomas NOEL <tnoel@entrouvert.com> Date: Mon Jan 6 15:55:24 2020 +0100 wf/profile: do not use after jobs when there's no http response (#38793)
Mis à jour par Frédéric Péters il y a plus de 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
wf/profile: do not use after jobs when there's no http response (#38793)