Refactor task management: replace Celery with Procrastinate for background tasks and update related configurations

This commit is contained in:
2025-06-28 10:25:33 +05:00
parent 28315c59cf
commit e3b39478eb
8 changed files with 37 additions and 66 deletions

View File

@ -181,7 +181,7 @@ class VerifyPaymentView(StaffEditorPermissionMixin, generics.UpdateAPIView):
)
if not device.registered:
# Add to omada
add_new_devices_to_omada.delay(new_devices=device_list)
add_new_devices_to_omada.defer(new_devices=device_list)
device.registered = True
device.save()