Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +goose Up
-- +goose StatementBegin
ALTER TABLE v1_task_events_olap ADD COLUMN is_dag_orchestrator BOOLEAN NOT NULL DEFAULT FALSE;
-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin
ALTER TABLE v1_task_events_olap DROP COLUMN is_dag_orchestrator;
-- +goose StatementEnd
1 change: 1 addition & 0 deletions internal/services/controllers/olap/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1108,6 +1108,7 @@ func (tc *OLAPControllerImpl) handleCreateMonitoringEvent(ctx context.Context, t
WorkerID: workerId,
AdditionalEventMessage: sqlchelpers.TextFromStr(eventMessages[i]),
ExternalID: eventExternalIds[i],
IsDagOrchestrator: taskIdsToMetas[taskId].IsDagOrchestrator,
}

switch eventTypes[i] {
Expand Down
3 changes: 2 additions & 1 deletion pkg/repository/sqlcv1/copyfrom.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/repository/sqlcv1/models.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pkg/repository/sqlcv1/olap.sql
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ INSERT INTO v1_task_events_olap (
additional__event_data,
additional__event_message,
external_id,
durable_invocation_count
durable_invocation_count,
is_dag_orchestrator
) VALUES (
$1,
$2,
Expand All @@ -257,7 +258,8 @@ INSERT INTO v1_task_events_olap (
$12,
$13,
$14,
$15
$15,
$16
);

-- name: ReadTaskByExternalID :one
Expand Down
13 changes: 7 additions & 6 deletions pkg/repository/sqlcv1/olap.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions sql/schema/v1-olap.sql
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ CREATE TABLE v1_task_events_olap (
additional__event_data TEXT,
additional__event_message TEXT,
durable_invocation_count INT NOT NULL DEFAULT 0,
is_dag_orchestrator BOOLEAN NOT NULL DEFAULT FALSE,

PRIMARY KEY (task_id, task_inserted_at, id)
) PARTITION BY RANGE (task_inserted_at);
Expand Down
Loading