You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An agent with no overrides inherits everything from `[defaults]`. An agent with partial overrides gets those values from its own config and everything else from defaults. See [Agents](/docs/agents) for how agent config merging works.
@@ -394,6 +396,7 @@ At least one provider (legacy key or custom provider) must be configured.
Copy file name to clipboardExpand all lines: docs/content/docs/(features)/cron.mdx
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,12 +149,21 @@ Any code with access to `CronStore` and `Scheduler` can create cron jobs. The co
149
149
150
150
## Active Hours
151
151
152
-
The active window uses 24-hour local time. If `active_start_hour` and `active_end_hour` are both set, the cron job only fires within that window.
152
+
The active window uses a resolved timezone for each agent:
153
+
154
+
1.`agents.cron_timezone`
155
+
2.`defaults.cron_timezone`
156
+
3.`SPACEBOT_CRON_TIMEZONE`
157
+
4. server local timezone
158
+
159
+
If `active_start_hour` and `active_end_hour` are both set, the cron job only fires within that window.
153
160
154
161
Midnight wrapping is handled: a window of `22:00-06:00` means "10pm to 6am" — the cron job fires if the current hour is >= 22 or < 6.
155
162
156
163
If active hours are not set, the cron job runs at all hours.
157
164
165
+
If a configured timezone is invalid, Spacebot logs a warning and falls back to server local timezone.
166
+
158
167
Active hours don't affect the timer interval — the timer still ticks at `interval_secs`. When a tick lands outside the active window, it's skipped. The next tick happens at the normal interval, not "as soon as the window opens."
0 commit comments