-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On-hold flag and celery task for applicationstatus updates. #253
base: main
Are you sure you want to change the base?
Conversation
New model TimeFlags has been added. Celery task to run once a day, to check the applications which has status set to more_information or on_hold. Based on UCD-25, either more the application to on_hold or reject them.
@@ -22,4 +22,8 @@ | |||
"task": "request_a_govuk_domain.request.tasks.check_email_failure_and_notify", | |||
"schedule": crontab(minute="*/1"), | |||
}, | |||
"application-status-checker": { | |||
"task": "request_a_govuk_domain.request.tasks.check_application_status", | |||
"schedule": crontab(hour="0"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to set the minute=0 otherwise it will run every minute at 0 hrs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you need to set the minute=0 otherwise it will run every minute at 0 hrs
hour=0, doing it once a day at midnight. But will ask Robert on Monday.
model = TimeFlag | ||
|
||
def has_add_permission(self, request): | ||
if self.model.objects.count() >= MAX_OBJECTS: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be False for any user as we do not want to add more entries?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we will need a seed script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we will need a seed script?
up for discussion with Robert/Jim/Max I guess.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be False for any user as we do not want to add more entries?
Done
Need more work, parking for now.
New model TimeFlags has been added.
Celery task to run once a day, to check the applications which has status set to more_information or on_hold. Based on UCD-25, either move the application to on_hold or reject them.