Revision 7eadc230 snf-astakos-app/astakos/im/functions.py
b/snf-astakos-app/astakos/im/functions.py | ||
---|---|---|
702 | 702 |
|
703 | 703 |
application_approve_notify(application) |
704 | 704 |
|
705 |
def check_expiration(execute=False): |
|
706 |
objects = Project.objects |
|
707 |
expired = objects.expired_projects() |
|
708 |
if execute: |
|
709 |
for project in expired: |
|
710 |
terminate(project.id) |
|
711 |
|
|
712 |
return [project.expiration_info() for project in expired] |
|
713 |
|
|
705 | 714 |
def terminate(project_id): |
706 | 715 |
project = get_project_for_update(project_id) |
707 | 716 |
checkAlive(project) |
Also available in: Unified diff