Skip to content
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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jinnashravan
Copy link
Contributor

@jinnashravan jinnashravan commented Jul 19, 2024

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.

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"),
Copy link
Contributor

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

Copy link
Contributor Author

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:
Copy link
Contributor

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?

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants