Skip to content

Commit

Permalink
fix: add back deprecated service names and fix webhook worker query (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
abelanger5 authored Jun 27, 2024
1 parent 09499d2 commit c2debe6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion cmd/hatchet-engine/engine/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er
})
}

if sc.HasService("queue") {
// FIXME: jobscontroller and workflowscontroller are deprecated service names, but there's not a clear upgrade
// path for old config files.
if sc.HasService("queue") || sc.HasService("jobscontroller") || sc.HasService("workflowscontroller") {
partitionTeardown, partitionId, err := p.withControllers(ctx)

if err != nil {
Expand Down
3 changes: 2 additions & 1 deletion pkg/repository/prisma/dbsqlc/webhook_workers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ WITH tenants AS (
FROM
"Tenant"
WHERE
"workerPartitionId" = sqlc.arg('workerPartitionId')::text
"workerPartitionId" = sqlc.arg('workerPartitionId')::text OR
"workerPartitionId" IS NULL
), update_partition AS (
UPDATE
"TenantWorkerPartition"
Expand Down
3 changes: 2 additions & 1 deletion pkg/repository/prisma/dbsqlc/webhook_workers.sql.go

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

0 comments on commit c2debe6

Please sign in to comment.