def initialize_seta(self): logger.info('Updating JobPriority table.') logger.info('Number of items in table: %d', JobPriority.objects.count()) update_job_priority_table() logger.info('Loading preseed table.') logger.info('Number of items in table: %d', JobPriority.objects.count()) load_preseed() logger.info('Number of items in table: %d', JobPriority.objects.count())
def initialize_seta(self): logger.info('Updating runnable jobs table (this will take few minutes).') RunnableJobsProcess().run() logger.info('Updating JobPriority table.') logger.info('Number of items in table: %d', JobPriority.objects.count()) update_job_priority_table() logger.info('Loading preseed table.') logger.info('Number of items in table: %d', JobPriority.objects.count()) load_preseed() logger.info('Number of items in table: %d', JobPriority.objects.count())
def initialize_seta(self): logger.info( 'Updating runnable jobs table (this will take few minutes).') RunnableJobsProcess().run() logger.info('Updating JobPriority table.') logger.info('Number of items in table: %d' % JobPriority.objects.count()) update_job_priority_table() logger.info('Loading preseed table.') logger.info('Number of items in table: %d' % JobPriority.objects.count()) load_preseed() logger.info('Number of items in table: %d' % JobPriority.objects.count())
def handle(self, *args, **options): load_preseed()
def handle(self, *args, **options): load_preseed(options.get("validate"))