-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FO - Nouveaux formulaire] Soumission du formulaire sans le traitement des fichiers (asynchrone) #2245
Conversation
117ddd2
to
23380ea
Compare
@@ -1,3 +1,3 @@ | |||
postdeploy: ./scripts/postdeploy.sh | |||
worker: php bin/console messenger:consume async | |||
worker: php bin/console messenger:consume async_priority_high async |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
App\Messenger\Message\PdfExportMessage: async_priority_high | ||
App\Messenger\Message\SignalementDraftFileMessage: async_priority_high |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai priorisé le traitement des images et envoi des pdfs aux autres messages (sish, schs, et oilhi)
20a7147
to
d077862
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test et relecture OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK lecture et tests !
Ticket
#2240
Review app : https://histologe-staging-pr2245.osc-fr1.scalingo.io
Description
Les temps de traitements peuvent être assez longs lors de la soumission d'un draft
Changements apportés
Pré-requis
Mettez à jour le container phpworker
Tests
Soumettez un signalement avec quelques images et constatez que les temps de traitement sont très légèrement supérieurs aux requêtes précédentes avec un signalement sans images
Soumettez un signalement avec beaucoup d'images (> 20) et constatez que les temps de traitement sont très légèrement supérieurs à la requête précédente (voir requêtes 54) avec un signalement sans images
![image](https://private-user-images.githubusercontent.com/5757116/305176877-c70a905b-5f9d-45f3-b7df-268bfecb3e1a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MjA4NDgsIm5iZiI6MTcyMDYyMDU0OCwicGF0aCI6Ii81NzU3MTE2LzMwNTE3Njg3Ny1jNzBhOTA1Yi01ZjlkLTQ1ZjMtYjdkZi0yNjhiZmVjYjNlMWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMTQwOTA4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OWFiMWNjNDQ0ZjM2NjExNTU2MjFkNzAxZWNkMWM4YmNhMTE3ODA3MzEwYTRmYzJmZTZhM2IzZjMyNjAzMDhkOSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.MkIo5MNjPTMFTNkFIDWf9158_v5Zvd7fpklp_i3LcK8)
Lancez des exports et vérifiez que votre file d'attente possède des messages high priority
![image](https://private-user-images.githubusercontent.com/5757116/305178215-1aa7dcc6-d560-4437-ae07-3454d027df03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MjA4NDgsIm5iZiI6MTcyMDYyMDU0OCwicGF0aCI6Ii81NzU3MTE2LzMwNTE3ODIxNS0xYWE3ZGNjNi1kNTYwLTQ0MzctYWUwNy0zNDU0ZDAyN2RmMDMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMTQwOTA4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZDg4MDZiNDljNTFmYmI3M2I5MWYzN2NhZmYwZmI4N2NjZjI1MzYyODMwMTYzNzI3NDM2NDk2NjExMmYxMjhkZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.DMZLqSKhfW6FtIDhKcOOUIqLjAqpCv3jdZqA6jR6SLQ)
Lancez maintenant le worker
make worker-start
et vérifiez que la pile se vide. Une fois le message high traité, retournez sur le signalementRetournez sur le signalement et vérifiez que vous ayez toutes vos images et documents
![image](https://private-user-images.githubusercontent.com/5757116/305180668-3d60315f-5423-4e62-a62d-ecdcfc1c5cbb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA2MjA4NDgsIm5iZiI6MTcyMDYyMDU0OCwicGF0aCI6Ii81NzU3MTE2LzMwNTE4MDY2OC0zZDYwMzE1Zi01NDIzLTRlNjItYTYyZC1lY2RjZmMxYzVjYmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMTQwOTA4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDI3ZGI3MDFjOTcyOWYxNjJjYTk0OWM5ZDZlYmJkZTUzOWU3MTU2YzZhMmZhOTJkZDU2MTM4YTIzMGY5NTA0MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.8JFGMWSaeYv3eS_j3G_KmJUHyoje0ZVjkdOh31GQGpY)
Refaite un test avec le worker allumé cette fois ci