Import cannot be run synchronously in management command #33

Closed
opened 2022-01-01 23:04:11 +01:00 by nik · 3 comments
nik commented 2022-01-01 23:04:11 +01:00 (Migrated from edugit.org)

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
nik commented 2022-01-01 23:04:11 +01:00 (Migrated from edugit.org)

assigned to @hansegucker

assigned to @hansegucker
hansegucker commented 2022-01-07 14:39:42 +01:00 (Migrated from edugit.org)

mentioned in merge request !140

mentioned in merge request !140
nik (Migrated from edugit.org) closed this issue 2022-01-08 11:20:40 +01:00
nik commented 2022-01-08 11:20:41 +01:00 (Migrated from edugit.org)

mentioned in commit 560b63bedc

mentioned in commit 560b63bedc478e5f201ec4eaa23a4a5488e30638
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
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.