Scheduling & Triggers¶
Onginred supports multiple trigger types, all combinable in one job.
Time triggers¶
add_cron(expr)— cron-style scheduling ("0 6 * * *")add_fixed_time(hour, minute)— run at fixed timeset_start_interval(seconds)— run every N secondsadd_suppression_window("HH:MM-HH:MM")— define off-periods
Filesystem triggers¶
add_watch_path(path)— trigger when files changeadd_queue_directory(path)— trigger when files added, processed seriallyenable_start_on_mount()— trigger when a filesystem mounts
Event triggers¶
add_launch_event(subsystem, name, descriptor_dict)add_socket(name, **socket_opts)add_mach_service(name, reset_at_close=True)
Behavior tuning¶
Use LaunchBehavior to configure run conditions:
```python from onginred.behavior import LaunchBehavior
behavior = LaunchBehavior( run_at_load=True, keep_alive=True, throttle_interval=60, ) ````