Skip to content

Commit

Permalink
Use celery delay func
Browse files Browse the repository at this point in the history
  • Loading branch information
sukso96100 committed Jul 21, 2024
1 parent bcc077e commit 08efb8e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions kiosksvc/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ class ParticipantAdmin(ImportExportMixin, admin.ModelAdmin):
@admin.action(description="체크인 QR 이메일 발송", permissions=["change"])
def send_checkin_qr_email(self, request, queryset):

send_checkin_qr_email_task.apply_async(args=[queryset])
send_checkin_qr_email_task.delay(queryset)
messages.success(request, f"체크인 QR 코드 이메일 발송 작업이 실행 되었습니다.")





class UserTokenAdmin(OriginalUserAdmin):
actions = ['send_token_qr_email', 'activate_user','deactivate_user']
Expand Down

0 comments on commit 08efb8e

Please sign in to comment.