Skip to main content

BaseScheduler

Base Report scheduler analytics.

Ancestors

  • abc.ABC

Descendants

  • systematica.tools.schedulers.reports.ReportScheduler
  • systematica.tools.schedulers.trades.TradeScheduler

Static methods

pull_data

Pull data. Parameters: Returns:

update_data

Update data. Fetches new data for each feature/symbol. Parameters: Returns:

run_task

Run task. Use SlackMessenger by default. Specify a particular time that the job should be run at. The format must make sense given how often the job is repeating. More info could be found in schedule.
  • For daily jobs -> HH:MM:SS or HH:MM
  • For hourly jobs -> MM:SS or :MM
  • For minute jobs -> :SS
Parameters: Returns:

run_thread

Run task. Use SlackMessenger by default. Specify a particular time that the job should be run at. The format must make sense given how often the job is repeating. More info could be found in schedule.
  • For daily jobs -> HH:MM:SS or HH:MM
  • For hourly jobs -> MM:SS or :MM
  • For minute jobs -> :SS
Parameters: Returns:

run_process

Run task. Use SlackMessenger by default. Specify a particular time that the job should be run at. The format must make sense given how often the job is repeating. More info could be found in schedule.
  • For daily jobs -> HH:MM:SS or HH:MM
  • For hourly jobs -> MM:SS or :MM
  • For minute jobs -> :SS
Parameters: Returns:

Methods

execute

Abstract method to Generate and post a scheduled report. This method should be implemented in subclasses to define the specific logic for generating and posting reports. Parameters:

job

Job to run the scheduler. This method initializes the logger, measures execution time, and calls the execute method to perform the scheduled task. It also logs the elapsed time and peak RAM usage after execution.