mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-13 22:32:15 +00:00
Convert validation processing to a celery task
This commit is contained in:
11
settings.py
11
settings.py
@@ -156,6 +156,13 @@ try:
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
djcelery.setup_loader()
|
||||
|
||||
### Celery Schedule
|
||||
|
||||
CELERYBEAT_SCHEDULE = {
|
||||
"reddit-validations": {
|
||||
"task": "reddit.tasks.process_validations",
|
||||
"schedule": timedelta(minutes=10),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user