fix(core): Run agent scheduled tasks in the timezone they were authored in (#36226)

This commit is contained in:
Benjamin Schroth
2026-08-18 14:21:46 +00:00
committed by GitHub
parent ce154150e8
commit 3d70ae7fc4
29 changed files with 734 additions and 56 deletions
+4 -2
View File
@@ -20,9 +20,9 @@ Auto-generated from the PostgreSQL migrations in @n8n/db. Do not edit by hand.
| [public.agent_execution_threads](public.agent_execution_threads.md) | 17 | | BASE TABLE |
| [public.agent_files](public.agent_files.md) | 10 | | BASE TABLE |
| [public.agent_history](public.agent_history.md) | 9 | | BASE TABLE |
| [public.agent_task_definition](public.agent_task_definition.md) | 7 | | BASE TABLE |
| [public.agent_task_definition](public.agent_task_definition.md) | 8 | | BASE TABLE |
| [public.agent_task_run_lock](public.agent_task_run_lock.md) | 6 | | BASE TABLE |
| [public.agent_task_snapshot](public.agent_task_snapshot.md) | 8 | | BASE TABLE |
| [public.agent_task_snapshot](public.agent_task_snapshot.md) | 9 | | BASE TABLE |
| [public.agents](public.agents.md) | 14 | | BASE TABLE |
| [public.agents_memory_entries](public.agents_memory_entries.md) | 13 | | BASE TABLE |
| [public.agents_memory_entry_cursors](public.agents_memory_entry_cursors.md) | 6 | | BASE TABLE |
@@ -507,6 +507,7 @@ erDiagram
varchar_32_ id
varchar_128_ name
text objective
varchar_64_ timezone
timestamp_3__with_time_zone updatedAt
}
"public.agent_task_run_lock" {
@@ -524,6 +525,7 @@ erDiagram
varchar_128_ name
text objective
varchar_32_ taskId
varchar_64_ timezone
timestamp_3__with_time_zone updatedAt
varchar_36_ versionId FK
}
+1
View File
@@ -115,6 +115,7 @@ erDiagram
varchar_128_ name
text objective
varchar_32_ taskId
varchar_64_ timezone
timestamp_3__with_time_zone updatedAt
varchar_36_ versionId FK
}
@@ -10,6 +10,7 @@
| id | varchar(32) | | false | | | Application-generated task ID referenced from agent JSON config |
| name | varchar(128) | | false | | | |
| objective | text | | false | | | User-authored instruction sent to the agent when this task runs |
| timezone | varchar(64) | | true | | | IANA timezone the cron is evaluated in; null falls back to the instance timezone |
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | |
## Constraints
@@ -47,6 +48,7 @@ erDiagram
varchar_32_ id
varchar_128_ name
text objective
varchar_64_ timezone
timestamp_3__with_time_zone updatedAt
}
"public.agents" {
@@ -10,6 +10,7 @@
| name | varchar(128) | | false | | | |
| objective | text | | false | | | User-authored instruction sent to the agent when this task runs |
| taskId | varchar(32) | | false | | | Stable task ID referenced from the published agent JSON config |
| timezone | varchar(64) | | true | | | IANA timezone the cron is evaluated in; null falls back to the instance timezone |
| updatedAt | timestamp(3) with time zone | CURRENT_TIMESTAMP(3) | false | | | |
| versionId | varchar(36) | | false | | [public.agent_history](public.agent_history.md) | Published agent_history version this task snapshot belongs to |
@@ -48,6 +49,7 @@ erDiagram
varchar_128_ name
text objective
varchar_32_ taskId
varchar_64_ timezone
timestamp_3__with_time_zone updatedAt
varchar_36_ versionId FK
}
+1
View File
@@ -182,6 +182,7 @@ erDiagram
varchar_32_ id
varchar_128_ name
text objective
varchar_64_ timezone
timestamp_3__with_time_zone updatedAt
}
"public.agent_task_run_lock" {