|
PACS System 0.1.0
PACS DICOM system library
|
Configuration for cleanup scheduling. More...
#include <task_scheduler_config.h>

Public Member Functions | |
| auto | retention_for (const std::string &modality) const -> std::chrono::days |
| Get retention period for a modality. | |
Public Attributes | |
| std::chrono::days | default_retention {365} |
| Default retention period. | |
| std::map< std::string, std::chrono::days > | modality_retention |
| Modality-specific retention periods. | |
| std::set< std::string > | exclude_patterns |
| Study description patterns to exclude from cleanup. | |
| bool | verify_not_locked {true} |
| Verify study is not locked before deletion. | |
| bool | dry_run {false} |
| Perform dry run (report only, no deletion) | |
| std::size_t | max_deletions_per_cycle {100} |
| Maximum studies to delete per cycle. | |
| bool | database_only {false} |
| Delete from database only (keep files) | |
| schedule | cleanup_schedule {cron_schedule::daily_at(2, 0)} |
| Schedule for cleanup task. | |
Configuration for cleanup scheduling.
Definition at line 346 of file task_scheduler_config.h.
|
inlinenodiscard |
Get retention period for a modality.
| modality | DICOM modality code |
Definition at line 376 of file task_scheduler_config.h.
| schedule kcenon::pacs::workflow::cleanup_config::cleanup_schedule {cron_schedule::daily_at(2, 0)} |
Schedule for cleanup task.
Definition at line 369 of file task_scheduler_config.h.
| bool kcenon::pacs::workflow::cleanup_config::database_only {false} |
Delete from database only (keep files)
Definition at line 366 of file task_scheduler_config.h.
| std::chrono::days kcenon::pacs::workflow::cleanup_config::default_retention {365} |
| bool kcenon::pacs::workflow::cleanup_config::dry_run {false} |
Perform dry run (report only, no deletion)
Definition at line 360 of file task_scheduler_config.h.
| std::set<std::string> kcenon::pacs::workflow::cleanup_config::exclude_patterns |
Study description patterns to exclude from cleanup.
Definition at line 354 of file task_scheduler_config.h.
| std::size_t kcenon::pacs::workflow::cleanup_config::max_deletions_per_cycle {100} |
Maximum studies to delete per cycle.
Definition at line 363 of file task_scheduler_config.h.
| std::map<std::string, std::chrono::days> kcenon::pacs::workflow::cleanup_config::modality_retention |
Modality-specific retention periods.
Definition at line 351 of file task_scheduler_config.h.
| bool kcenon::pacs::workflow::cleanup_config::verify_not_locked {true} |
Verify study is not locked before deletion.
Definition at line 357 of file task_scheduler_config.h.