Skip to content
Extraits de code Groupes Projets
Valider 7f769da2 rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[UPD] add time sleep to cron function

parent c4a262b1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
import base64 import base64
import logging import logging
import time
from odoo import _, exceptions, models from odoo import _, exceptions, models
from odoo.exceptions import UserError from odoo.exceptions import UserError
...@@ -27,6 +28,7 @@ class InovaticJobQueue(models.Model): ...@@ -27,6 +28,7 @@ class InovaticJobQueue(models.Model):
filename = file.name filename = file.name
data_file = base64.b64encode(stream) data_file = base64.b64encode(stream)
job.inovatic_load_file(file=data_file, filename=filename) job.inovatic_load_file(file=data_file, filename=filename)
time.sleep(5)
# ------------------------------------------------------ # ------------------------------------------------------
# Internal function # Internal function
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter