#NEWLINE# def cron_lazy( func = None , minute = ( - 1 ) , hour = ( - 1 ) , day = ( - 1 ) , month = ( - 1 ) , dayweek = ( - 1 ) , executor = TaskExecutor . AUTO , run = False , **setup ) : #NEWLINE# #INDENT# 'Creates cron-like task on execution' #NEWLINE# def inner( function ) : #NEWLINE# #INDENT# cron_task = CronTask ( function = function , executor = executor , minute = minute , hour = hour , day = day , month = month , dayweek = dayweek , ** setup ) #NEWLINE# if run : #NEWLINE# #INDENT# return cron_task ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return cron_task #NEWLINE# #UNINDENT# #UNINDENT# if ( func is None ) : #NEWLINE# #INDENT# return month #NEWLINE# #UNINDENT# return inner ( func )