misc: improve use of spooler (#76419) #70
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/76419-utiliser-hobo-multitenant-uwsgid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Trying to import uwsgi should not be used to detect if we are running in
pytest or not, in order to run callbacks attached to on_commit event in
the context of pytest-django (which run all tests inside implicit
transactions).
Here we replace somme spooler functions by a simpler to_spooler() which
can launch inside the spooler any picklable functions.
For running on_commit() callbacks, the django.db.transaction module is
mirrored inside chrono.utils.transaction and we monkeypatch it during
tests to immediately run any defined on_commit callback.
J'ai un léger doute sur ce code
Je ne comprends pas pourquoi dans les tests on passe data=data mais pas quand le spooler est utilisé, dans le patch j'ai supposé que ça devait toujours marcher sans le paramètre data. J'ai l'impression que c'est juste du code tordu pour ne pas systématiquement refaire une requête HTTP pour obtenir le contenu du fichier .ics (qu'il faut refaire de toute façon dans le spooler, pour ne pas passer trop de contenu via le fichier du job).
193c2e59fe
to1182e566b9
1182e566b9
tobb543a1ba5
bb543a1ba5
to9f18031a83
9f18031a83
to6348e798c8
6348e798c8
to29caf73f79
29caf73f79
to636292c2fd
636292c2fd
to0aa45508b3
0aa45508b3
to80a25a831a
80a25a831a
to78708d456a
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.