Пример #1
0
def task_run_core():
    """ Reimplement to add the body of the task."""
    if task_get_option('guests'):
        guest_user_garbage_collector()
    if task_get_option('logs'):
        clean_logs()
    if task_get_option('tempfiles'):
        clean_tempfiles()
    if task_get_option('bibxxx'):
        clean_bibxxx()
    if task_get_option('documents'):
        clean_documents()
    if task_get_option('cache'):
        clean_cache()
    if task_get_option('tasks'):
        gc_tasks()
    if task_get_option('check-tables'):
        check_tables()
    if task_get_option('optimise-tables'):
        optimise_tables()
    if task_get_option('sessions'):
        clean_sessions()
    if task_get_option('bibedit-cache'):
        clean_bibedit_cache()
    return True
Пример #2
0
def task_run_core():
    """ Reimplement to add the body of the task."""
    if task_get_option('guests'):
        guest_user_garbage_collector()
    if task_get_option('logs'):
        clean_logs()
    if task_get_option('tempfiles'):
        clean_tempfiles()
    if task_get_option('bibxxx'):
        clean_bibxxx()
    if task_get_option('documents'):
        clean_documents()
    if task_get_option('cache'):
        clean_cache()
    if task_get_option('tasks'):
        gc_tasks()
    if task_get_option('check-tables'):
        check_tables()
    if task_get_option('optimise-tables'):
        optimise_tables()
    if task_get_option('sessions'):
        clean_sessions()
    if task_get_option('bibedit-cache'):
        clean_bibedit_cache()
    return True
Пример #3
0
 def purge_done(self):
     """Garbage collector."""
     if self._display_YN_box(
             "You are going to purge the list of DONE tasks.\n\n"
             "%s tasks, submitted since %s days, will be archived.\n\n"
             "%s tasks, submitted since %s days, will be deleted.\n\n"
             "Are you sure?" % (', '.join(CFG_BIBSCHED_GC_TASKS_TO_ARCHIVE),
                                CFG_BIBSCHED_GC_TASKS_OLDER_THAN,
                                ', '.join(CFG_BIBSCHED_GC_TASKS_TO_REMOVE),
                                CFG_BIBSCHED_GC_TASKS_OLDER_THAN)):
         gc_tasks()
         # We removed some tasks from our list
         self.update_rows()
         self.repaint()
         self.display_in_footer("DONE processes purged")
Пример #4
0
def task_run_core():
    """ Reimplement to add the body of the task."""
    if task_get_option('guests'):
        guest_user_garbage_collector()
    if task_get_option('logs'):
        clean_logs()
    if task_get_option('bibxxx'):
        clean_bibxxx()
    if task_get_option('documents'):
        clean_documents()
    if task_get_option('cache'):
        clean_cache()
    if task_get_option('tasks'):
        gc_tasks()
    return True
Пример #5
0
def task_run_core():
    """ Reimplement to add the body of the task."""
    if task_get_option("guests"):
        guest_user_garbage_collector()
    if task_get_option("logs"):
        clean_logs()
    if task_get_option("bibxxx"):
        clean_bibxxx()
    if task_get_option("documents"):
        clean_documents()
    if task_get_option("cache"):
        clean_cache()
    if task_get_option("tasks"):
        gc_tasks()
    return True
Пример #6
0
 def purge_done(self):
     """Garbage collector."""
     if self._display_YN_box(
         "You are going to purge the list of DONE tasks.\n\n"
         "%s tasks, submitted since %s days, will be archived.\n\n"
         "%s tasks, submitted since %s days, will be deleted.\n\n"
         "Are you sure?" % (
             ', '.join(CFG_BIBSCHED_GC_TASKS_TO_ARCHIVE),
             CFG_BIBSCHED_GC_TASKS_OLDER_THAN,
             ', '.join(CFG_BIBSCHED_GC_TASKS_TO_REMOVE),
             CFG_BIBSCHED_GC_TASKS_OLDER_THAN)):
         gc_tasks()
         # We removed some tasks from our list
         self.update_rows()
         self.repaint()
         self.display_in_footer("DONE processes purged")