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
2 changes: 1 addition & 1 deletion apps/api/src/workers/pr-watcher-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function startPrWatcherWorker() {
.select()
.from(tasks)
.where(
sql`${tasks.state} IN ('pr_opened', 'failed') AND ${tasks.prUrl} IS NOT NULL AND (${tasks.taskType} = 'coding' OR ${tasks.taskType} IS NULL)`,
sql`${tasks.state} IN ('pr_opened', 'failed') AND ${tasks.prUrl} IS NOT NULL AND (${tasks.prState} IS NULL OR ${tasks.prState} = 'open') AND (${tasks.taskType} = 'coding' OR ${tasks.taskType} IS NULL)`,
);

for (const task of openPrTasks) {
Expand Down
2 changes: 1 addition & 1 deletion apps/api/src/workers/reconcile-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export function startReconcileResyncWorker() {
const nonTerminalTasks = await db
.select({ id: tasks.id })
.from(tasks)
.where(sql`${tasks.state} NOT IN ('completed')`);
.where(sql`${tasks.state} NOT IN ('completed', 'cancelled', 'failed')`);

const nonTerminalRuns = await db
.select({ id: workflowRuns.id })
Expand Down
1 change: 1 addition & 0 deletions helm/optio/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ api:
memory: 1Gi
env:
LOG_LEVEL: info
OPTIO_PR_WATCH_INTERVAL: "120000"
# Pod anti-affinity spreads API replicas across nodes.
# "soft" = preferredDuringSchedulingIgnoredDuringExecution (default)
# "hard" = requiredDuringSchedulingIgnoredDuringExecution
Expand Down
Loading