githubnext/chopinPublic

Let's compose rich plans together

Add background job runner and owner fencing

KCKrzysztof Cieslak authored
df982bbPatch
Parentf3457b7
18 files changed+1697-31
StackedSplit
apps/server/src/agent/active-owner.test.ts+182 โˆ’0
apps/server/src/agent/active-owner.ts+215 โˆ’0
apps/server/src/jobs/registry.ts+23 โˆ’1
apps/server/src/jobs/runner.test.ts+382 โˆ’0
apps/server/src/jobs/runner.ts+659 โˆ’0
apps/server/src/jobs/service.test.ts+1 โˆ’0
apps/server/src/jobs/service.ts+45 โˆ’14
apps/server/src/main.ts+98 โˆ’12
apps/server/src/storage/contract.ts+12 โˆ’1
apps/server/src/storage/memory/adapter.ts+15 โˆ’0
apps/server/src/storage/memory/jobs.ts+12 โˆ’2
apps/server/src/storage/model.ts+7 โˆ’0
apps/server/src/storage/port.ts+2 โˆ’0
apps/server/src/storage/postgres/adapter.test.ts+1 โˆ’0
apps/server/src/storage/postgres/adapter.ts+30 โˆ’0
apps/server/src/storage/postgres/jobs.ts+8 โˆ’1
apps/server/src/storage/postgres/migrations.ts+3 โˆ’0
apps/server/src/storage/postgres/migrations/005_background_job_failures.sql+2 โˆ’0