This commit is contained in:
2026-09-20 22:18:59 +08:00
parent 2bf3a1c8eb
commit 2aa80f08d0
12 changed files with 58 additions and 30 deletions
@@ -58,12 +58,12 @@ test('completion operation has durable PROCESSING and terminal response state',
assert.match(completionCommand, /nextRetryAt/)
assert.match(completionCommand, /completedAt/)
assert.match(completionCommand, /failureStage/)
const commandTable = unifiedSql.slice(unifiedSql.indexOf('CREATE TABLE IF NOT EXISTS fl_loading_completion_command'),
unifiedSql.indexOf(';', unifiedSql.indexOf('CREATE TABLE IF NOT EXISTS fl_loading_completion_command')) + 1)
const commandStart = unifiedSql.search(/CREATE TABLE(?: IF NOT EXISTS)? fl_loading_completion_command/)
const commandTable = unifiedSql.slice(commandStart, unifiedSql.indexOf(';', commandStart) + 1)
assert.match(commandTable, /command_status/i)
assert.match(commandTable, /next_retry_at/i)
assert.match(commandTable, /completed_at/i)
assert.match(unifiedSql, /CREATE TABLE IF NOT EXISTS fl_loading_completion_checkpoint/)
assert.match(unifiedSql, /CREATE TABLE(?: IF NOT EXISTS)? fl_loading_completion_checkpoint/)
})
test('durable worker processes inbound settlements incrementally with retry backoff', () => {