sandbox/apps.py
def ready(self):
        """Set up scheduled task.
        
        Download/update external lib at app's startup and configure a scheduled task to update
        them.
        
        cheduled task to remove expired environment."""
        refresh_external_libs()
        
        scheduler = BackgroundScheduler(job_defaults={
            'coalesce':           True,
            'max_instances':      1,
            'misfire_grace_time': 60 * 5,
        })
        scheduler.add_job(refresh_external_libs, trigger=settings.EXTERNAL_LIBRARIES_CRON_TRIGGER)
        scheduler.add_job(remove_expired_env, 'cron', minute=30)
        scheduler.start()
Set up scheduled task.
        
        Download/update external lib at app's startup and configure a scheduled task to update
        them.
        
        cheduled task to remove expired environment.
Set up scheduled task.
Download/update external lib at app's startup and configure a scheduled task to update
them.

cheduled task to remove expired environment.
Set up scheduled task . Download / update external lib at app ' s startup and configure a scheduled task to update them . cheduled task to remove expired environment .
def ready(self):
        refresh_external_libs()
        scheduler = BackgroundScheduler(job_defaults={
            'coalesce':           True,
            'max_instances':      1,
            'misfire_grace_time': 60 * 5,
        })
        scheduler.add_job(refresh_external_libs, trigger=settings.EXTERNAL_LIBRARIES_CRON_TRIGGER)
        scheduler.add_job(remove_expired_env, 'cron', minute=30)
        scheduler.start()
def ready ( self ) : refresh_external_libs ( ) scheduler = BackgroundScheduler ( job_defaults = { 'coalesce' : True , 'max_instances' : 1 , 'misfire_grace_time' : 60 * 5 , } ) scheduler . add_job ( refresh_external_libs , trigger = settings . EXTERNAL_LIBRARIES_CRON_TRIGGER ) scheduler . add_job ( remove_expired_env , 'cron' , minute = 30 ) scheduler . start ( )
Set up scheduled task.
Set up scheduled task .
"""Set up scheduled task.
        
        Download/update external lib at app's startup and configure a scheduled task to update
        them.
        
        cheduled task to remove expired environment."""
self