feature/limpieza-periodica

This commit is contained in:
2026-03-24 16:58:48 -06:00
parent 65eec3c4d3
commit c565696242
17 changed files with 298 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ celery_app.conf.update(
"api.v1.modules.a76.invoices.imports.revert.task",
"api.v1.modules.a76.invoices.exports.process.task",
"api.v1.modules.a76.invoices.exports.revert.task",
"api.v1.modules.a76.layouts_csv.common.victor",
] # Ruta al módulo donde están las tareas
)
@@ -84,6 +85,10 @@ celery_app.conf.beat_schedule = {
"task": "sync_from_hub_task",
"schedule": 60.0, # Run every 60 seconds
},
"cleanup-orphan-layout-imports-hourly": {
"task": "cleanup_orphan_layout_imports",
"schedule": 3600.0,
},
}
if __name__ == "__main__":