|
PACS System 0.1.0
PACS DICOM system library
|
Configuration for the task scheduler service. More...
#include <task_scheduler_config.h>

Public Types | |
| using | task_complete_callback |
| Callback when any task completes. | |
| using | task_error_callback |
| Callback when any task fails. | |
| using | cycle_complete_callback |
| Callback when scheduler cycle completes. | |
Public Member Functions | |
| auto | is_valid () const noexcept -> bool |
| Check if configuration is valid. | |
Public Attributes | |
| bool | enabled {true} |
| Enable/disable the scheduler service. | |
| bool | auto_start {false} |
| Whether to start automatically on construction. | |
| std::size_t | max_concurrent_tasks {4} |
| Maximum concurrent task executions. | |
| std::chrono::seconds | check_interval {60} |
| Scheduler check interval (how often to check for due tasks) | |
| std::string | persistence_path |
| Path to persist scheduled tasks (empty = no persistence) | |
| bool | restore_on_startup {true} |
| Restore tasks from persistence on startup. | |
| std::optional< cleanup_config > | cleanup |
| Cleanup configuration. | |
| std::optional< archive_config > | archive |
| Archive configuration. | |
| std::optional< verification_config > | verification |
| Verification configuration. | |
| task_complete_callback | on_task_complete |
| task_error_callback | on_task_error |
| cycle_complete_callback | on_cycle_complete |
Configuration for the task scheduler service.
Definition at line 473 of file task_scheduler_config.h.
Callback when scheduler cycle completes.
Definition at line 514 of file task_scheduler_config.h.
Callback when any task completes.
Definition at line 502 of file task_scheduler_config.h.
Callback when any task fails.
Definition at line 508 of file task_scheduler_config.h.
|
inlinenodiscardnoexcept |
Check if configuration is valid.
Definition at line 524 of file task_scheduler_config.h.
| std::optional<archive_config> kcenon::pacs::workflow::task_scheduler_config::archive |
Archive configuration.
Definition at line 496 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::task_scheduler(), kcenon::pacs::workflow::task_scheduler::task_scheduler(), and kcenon::pacs::workflow::task_scheduler::task_scheduler().
| bool kcenon::pacs::workflow::task_scheduler_config::auto_start {false} |
Whether to start automatically on construction.
Definition at line 478 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::task_scheduler(), kcenon::pacs::workflow::task_scheduler::task_scheduler(), and kcenon::pacs::workflow::task_scheduler::task_scheduler().
| std::chrono::seconds kcenon::pacs::workflow::task_scheduler_config::check_interval {60} |
Scheduler check interval (how often to check for due tasks)
Definition at line 484 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::run_loop(), and kcenon::pacs::workflow::task_scheduler::start().
| std::optional<cleanup_config> kcenon::pacs::workflow::task_scheduler_config::cleanup |
Cleanup configuration.
Definition at line 493 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::task_scheduler(), kcenon::pacs::workflow::task_scheduler::task_scheduler(), and kcenon::pacs::workflow::task_scheduler::task_scheduler().
| bool kcenon::pacs::workflow::task_scheduler_config::enabled {true} |
Enable/disable the scheduler service.
Definition at line 475 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::task_scheduler(), kcenon::pacs::workflow::task_scheduler::task_scheduler(), and kcenon::pacs::workflow::task_scheduler::task_scheduler().
| std::size_t kcenon::pacs::workflow::task_scheduler_config::max_concurrent_tasks {4} |
Maximum concurrent task executions.
Definition at line 481 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::execute_cycle(), and kcenon::pacs::workflow::task_scheduler::start().
| cycle_complete_callback kcenon::pacs::workflow::task_scheduler_config::on_cycle_complete |
Definition at line 518 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::execute_cycle().
| task_complete_callback kcenon::pacs::workflow::task_scheduler_config::on_task_complete |
Definition at line 505 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::execute_cycle(), and kcenon::pacs::workflow::task_scheduler::set_task_complete_callback().
| task_error_callback kcenon::pacs::workflow::task_scheduler_config::on_task_error |
Definition at line 511 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::execute_cycle(), and kcenon::pacs::workflow::task_scheduler::set_error_callback().
| std::string kcenon::pacs::workflow::task_scheduler_config::persistence_path |
Path to persist scheduled tasks (empty = no persistence)
Definition at line 487 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::save_tasks(), kcenon::pacs::workflow::task_scheduler::task_scheduler(), kcenon::pacs::workflow::task_scheduler::task_scheduler(), and kcenon::pacs::workflow::task_scheduler::~task_scheduler().
| bool kcenon::pacs::workflow::task_scheduler_config::restore_on_startup {true} |
Restore tasks from persistence on startup.
Definition at line 490 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::task_scheduler(), and kcenon::pacs::workflow::task_scheduler::task_scheduler().
| std::optional<verification_config> kcenon::pacs::workflow::task_scheduler_config::verification |
Verification configuration.
Definition at line 499 of file task_scheduler_config.h.
Referenced by kcenon::pacs::workflow::task_scheduler::task_scheduler(), kcenon::pacs::workflow::task_scheduler::task_scheduler(), and kcenon::pacs::workflow::task_scheduler::task_scheduler().