hypernets_processor.main.scheduler_main module

Main function for running scheduler

hypernets_processor.main.scheduler_main.main(scheduler_config, processor_config)

Main function to schedule automated hypernets_processor jobs

Parameters:
  • scheduler_config (configparser.RawConfigParser) – scheduler configuration

  • processor_config (configparser.RawConfigParser) – processor configuration

hypernets_processor.main.scheduler_main.unpack_scheduler_config(scheduler_config)

Returns information from scheduler configuration information

Parameters:

scheduler_config (configparser.RawConfigParser) – scheduler configuration

Return type:

dict

Returns:

scheduler configuration information, with entries (defaults occur if entry omitted from config file):

  • seconds (int) - Scheduled job repeat interval in seconds, default None (if not None minutes and hours are None)

  • minutes (int) - Scheduled job repeat interval in minutes, default None (if not None seconds and hours are None)

  • hours (int) - Scheduled job repeat interval in hour, default None (if not None seconds and minutes are None)

  • start_time (datetime.datetime) - Scheduled time to start running tasks, default None (means start now)

  • parallel (bool) - Switch to run scheduled jobs on different threads, default False

  • jobs_list (str) - Path of jobs list file, to run on schedule