Package commands :: Module clean_expired_projects
[hide private]
[frames] | no frames]

Source Code for Module commands.clean_expired_projects

 1  import click 
 2  from . import deprioritize_actions 
 3  from coprs import db_session_scope 
 4  from coprs.logic.complex_logic import ComplexLogic 
5 6 7 @click.command() 8 @deprioritize_actions 9 -def clean_expired_projects():
10 """ 11 Clean all the expired temporary projects. This command is meant to be 12 executed by cron. 13 """ 14 15 with db_session_scope(): 16 ComplexLogic.delete_expired_projects()
17