-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add changes to activate cron job that deletes old applications 7 days after role appointment is done and saved #795
base: development
Are you sure you want to change the base?
Changes from all commits
b1e4b38
3d3d52c
f636f17
4335bd1
e54c8af
1bb4242
afe7453
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
from involvement.models import Application | ||
from utils.forms import AdvancedModelMultipleChoiceField | ||
from utils.unicore_client import UnicoreClient | ||
from involvement import cron | ||
|
||
|
||
class AppointmentForm(forms.Form): | ||
|
@@ -99,3 +100,4 @@ def save(self): | |
if not created: | ||
appl.status = 'appointed' | ||
appl.save() | ||
cron.remove_old_applications() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So a CRON-job is not supposed to be invoked manually, by definition. Unless there is some issue with |
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.
The change to remove only turned_down applications is good, because currently, it expects that applications are appointed within a week of the application end date, which is not always the case. The status is set to turned_down only when they have been appointed.