Projet

Général

Profil

Bug #27319

document poussé dans le porte-doc via une action globale déclenchée automatiquement

Ajouté par Frédéric Péters il y a plus de 5 ans. Mis à jour il y a plus de 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
14 octobre 2018
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:

Description

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/portfolio.py", line 107, in push_document
   105                                filename, user.display_name)
   106
>  107     get_response().add_after_job(
   108         N_('Sending file %(filename)s in portfolio of %(user_name)s') % {
   109             'filename': filename,

  locals:
     afterjob = <function afterjob at 0x7fddc3747c80>
     async_post = <wcs.portfolio.fargo_post_json_async object at 0x7fddc2f9f1d0>
     charset = 'utf-8'
     filename = 'Reponse-modele-lille.pdf'
     payload = {'origin': 'demarches.contactmqt.moselle.fr', 'file_name': u'Reponse-modele-lille.pdf', 'user_nameid':
u'b91cf5130f6e448aa621a1b3179ae003', 'file_b64_content':
...
  File "/usr/lib/python2.7/dist-packages/wcs/publisher.py", line 294, in apply_global_action_timeouts
   292         from wcs.workflows import Workflow, WorkflowGlobalActionTimeoutTrigger
   293         for workflow in Workflow.select():
>  294             WorkflowGlobalActionTimeoutTrigger.apply(workflow)
   295
   296     def migrate_sql(self):

Fichiers

Révisions associées

Révision 42c6c877 (diff)
Ajouté par Frédéric Péters il y a plus de 5 ans

misc: don't use after job when pushing to portfolio from global timeout (#27319)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 5 ans

  • Statut changé de Nouveau à Solution proposée
  • Patch proposed changé de Non à Oui
#3

Mis à jour par Benjamin Dauvergne il y a plus de 5 ans

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

Ack.

#4

Mis à jour par Frédéric Péters il y a plus de 5 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 42c6c877a2b5b18c48f5d529a422fe54a6faa87a
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Oct 14 20:13:30 2018 +0200

    misc: don't use after job when pushing to portfolio from global timeout (#27319)
#5

Mis à jour par Frédéric Péters il y a plus de 5 ans

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

Formats disponibles : Atom PDF