githubnext/chopinPublic

Let's compose rich plans together

Add durable background job storage

KCKrzysztof Cieslak authored committed by Krzysztof Cieślak
828bc0ePatch
Parentf168e5e
10 files changed+1956-2
StackedSplit
apps/server/src/storage/contract.ts+290 −1
apps/server/src/storage/memory/adapter.ts+7 −0
apps/server/src/storage/memory/jobs.ts+425 −0
apps/server/src/storage/model.ts+135 −0
apps/server/src/storage/port.ts+34 −0
apps/server/src/storage/postgres/adapter.test.ts+235 −0
apps/server/src/storage/postgres/adapter.ts+21 −1
apps/server/src/storage/postgres/jobs.ts+737 −0
apps/server/src/storage/postgres/migrations.ts+3 −0
apps/server/src/storage/postgres/migrations/004_background_jobs.sql+69 −0