Import cannot be run synchronously in management command #33

Closed
opened 2022-01-01 23:04:11 +01:00 by nik · 3 comments
Owner

A significant part of the import logic resides inside the Celery task, and the management command always calls .delay on it, so it only ever queues imports in the background.

We once decided that imports triggered by management commands should be run synchronously by default, with an option to instead delay the job. See https://edugit.org/AlekSIS/official/AlekSIS-App-Untis/-/issues/29

A significant part of the import logic resides inside the Celery task, and the management command always calls `.delay` on it, so it only ever queues imports in the background. We once decided that imports triggered by management commands should be run synchronously by default, with an option to instead delay the job. See https://edugit.org/AlekSIS/official/AlekSIS-App-Untis/-/issues/29
Author
Owner

assigned to @hansegucker

assigned to @hansegucker
Owner

mentioned in merge request !140

mentioned in merge request !140
nik closed this issue 2022-01-08 11:20:40 +01:00
Author
Owner

mentioned in commit 560b63bedc

mentioned in commit 560b63bedc478e5f201ec4eaa23a4a5488e30638
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
aleksis/AlekSIS-App-CSVImport#33
No description provided.