.. Adapted from https://stackoverflow.com/a/62613202 flexmeasures.data.services.automations ====================================== .. automodule:: flexmeasures.data.services.automations .. rubric:: Functions .. autofunction:: claim_due_automation_run .. autofunction:: claim_existing_automation_run .. autofunction:: collect_schedule_output_sensors .. autofunction:: collect_sensors .. autofunction:: create_automation .. autofunction:: delete_automation .. autofunction:: describe_cronstr .. autofunction:: dispatch_automation_run .. autofunction:: ensure_automation_run_job_intents .. autofunction:: errors_reported_for .. autofunction:: floor_to_minute .. autofunction:: floor_to_resolution .. autofunction:: get_asset_automations_job_stats .. autofunction:: get_automation_job_stats .. autofunction:: get_automation_last_run .. autofunction:: get_automation_run_stats .. autofunction:: get_automation_sensors .. autofunction:: get_automations_feeding_sensor .. autofunction:: get_automations_involving_sensor .. autofunction:: get_dispatchable_automation_runs .. autofunction:: get_due_automations .. autofunction:: get_forecast_output_sensor .. autofunction:: get_latest_scheduled_run .. autofunction:: get_next_scheduled_run .. autofunction:: mark_automation_job_queued .. autofunction:: mark_automation_run_dispatch_failed .. autofunction:: mark_automation_run_dispatch_queued .. autofunction:: prepare_report_parameters .. autofunction:: prepare_schedule_trigger_message .. autofunction:: reconcile_automation_job_intent .. autofunction:: record_automation_job_failed .. autofunction:: record_automation_job_started .. autofunction:: record_automation_job_succeeded .. autofunction:: record_automation_run .. autofunction:: refuse_fields_a_schedule_automation_cannot_use .. autofunction:: refuse_fixed_moments .. autofunction:: renew_automation_run_claim .. autofunction:: resolve_automation_sensors .. autofunction:: resolve_automation_window .. autofunction:: resolve_schedule_automation_sensors .. autofunction:: resolve_schedule_generator .. autofunction:: run_automation .. autofunction:: sensors_automation_job_may_record_on .. autofunction:: serialize_automation_run .. autofunction:: update_automation .. autofunction:: validate_automation_output_scope .. autofunction:: validate_automation_window .. autofunction:: validate_offset_chain .. rubric:: Classes .. autoclass:: ClaimedAutomationRun :members: :special-members: __init__ :private-members: .. autoclass:: DueAutomation :members: :special-members: __init__ :private-members: .. rubric:: Exceptions .. autoexception:: AutomationRunClaimError .. autoexception:: AutomationRunClaimLost .. autoexception:: AutomationRunPlanChanged .. autoexception:: AutomationSensorsUnknown .. autoexception:: RecurringAutomationFixesAMoment