Skip to content
Extraits de code Groupes Projets
Valider c62eb299 rédigé par Rémi - Le Filament's avatar Rémi - Le Filament
Parcourir les fichiers

[REV] use queue_job only for prorata

rationale: daily curves are required afterwards for set_static_data and we cannot ensure that they will have been computed by queue job before
parent 25d0b962
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -31,11 +31,7 @@ class QueueJobBatch(models.Model): ...@@ -31,11 +31,7 @@ class QueueJobBatch(models.Model):
self.end_date, self.end_date,
).update_cdc_partner_id(date_start=self.start_date, date_end=self.end_date) ).update_cdc_partner_id(date_start=self.start_date, date_end=self.end_date)
# Compute by-day aggregated curves # Compute by-day aggregated curves
self.env["acc.enedis.cdc.day"].with_delay( self.env["acc.enedis.cdc.day"].populate_daily_aggregated_data(
desc="Populate daily aggregated curves for operation "
+ f"{self.acc_operation_id.name} from {self.start_date} "
+ f"to {self.end_date}"
).populate_daily_aggregated_data(
acc_operation_id=self.acc_operation_id.id, acc_operation_id=self.acc_operation_id.id,
start_date=self.start_date, start_date=self.start_date,
end_date=self.end_date, end_date=self.end_date,
......
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