Skip to content

Leave the drain job half of the release timeout to write its outcome at a stop - #3714

Merged
pournasserian merged 2 commits into
feature/storage-jobs-and-testsfrom
3560-drain-job-outcome-at-stop
Nov 26, 2026
Merged

pournasserian merged 2 commits into
feature/storage-jobs-and-testsfrom
3560-drain-job-outcome-at-stop

Conversation

@pournasserian

Copy link
Copy Markdown
Member

Closes #3560

The outbox drain now bounds the writes of a stop by half of JobRunnerOptions.ReleaseTimeout, so the drain job's own outcome is written in the other half before the job runner's stop returns, where a drain that used all of it left its job leased until the lease ended.

The runner still waits ReleaseTimeout in all, and no option was added. At zero nothing is waited for, as before. The drain keeps its own split inside its half: the settle first, then the release.

A new test on a manual clock stops a running job runner whose drain uses its whole time and checks that the drain job succeeded before the stop returned. The Events and Jobs tests of FluentCMS.Data.Tests ran on SQLite, OutboxFailureTests on PostgreSQL too. The specification's "Outbox drain, as built" and the job runner's stop describe it.

@pournasserian pournasserian added type:chore Repository, tooling or housekeeping area:jobs Job runner and scheduled jobs labels Nov 26, 2026
@pournasserian
pournasserian enabled auto-merge (squash) November 26, 2026 18:45
@pournasserian
pournasserian merged commit 43c3d7e into feature/storage-jobs-and-tests Nov 26, 2026
4 checks passed
@pournasserian
pournasserian deleted the 3560-drain-job-outcome-at-stop branch November 26, 2026 18:57
pournasserian added a commit that referenced this pull request Nov 26, 2026
…, and run every end-to-end case on WebKit (#3723)

Closes #3604
Closes #3606
Closes #3575
Closes #3574
Closes #3560
Closes #3553
Closes #3552
Closes #3562
Closes #3649
Closes #3648
Closes #3213
Closes #3709

Brings the batch of `feature/storage-jobs-and-tests` into `main`: eight
issues of storage, jobs and operations, the three end-to-end issues that
were left, and the removal of member sign-in with Apple.

Storage, jobs and operations:

- #3719 Add a key-value store with compare-and-set for plugins
(`IPluginStore<TPlugin>`, the table `cms_plugin_store`, ADR 0009)
- #3710 Copy a media file an import line names by key under a key of its
own
- #3712 Hold document rows with a locking read on PostgreSQL
- #3722 Pin the round trips of a publish, a scheduled publish and an
import
- #3714 Leave the drain job half of the release timeout to write its
outcome at a stop
- #3716 Correct the migrations lock guide and release what the lock
tests hold
- #3715 Count the client registration limit in
`fluentcms.rate_limit.refused`
- #3721 Tell a derived plugin name from a given one and pin long check
names and SQLite rebuilds

End-to-end tests of the admin:

- #3713 Run the two reload cases of the navigation progress on WebKit
- #3717 Run the close of a clean tab on WebKit
- #3718 Add the end-to-end case of an external login removed on the
account page
- #3720 Read the API keys secret holders on the renderer's dispatcher
(part of #3610; a test that failed twice on Windows)

Identity:

- #3711 Drop member sign-in with Apple (#3165 is closed as not planned)

Changes a host or a client can see:

- A host whose configuration names a member provider with `Type: Apple`
no longer starts (`FCMS3180`). The package `AspNet.Security.OAuth.Apple`
is no longer referenced.
- The table `cms_plugin_store` is folded into the system `Initial`, so a
database of an earlier build is refused with `FCMS1308` and must be
recreated; `plugin_store` becomes a reserved table name.
- An import line without a file now copies the file at the key it names
under a key of its own; `mediaNameKeys=true` (`--media-name-keys`) keeps
the earlier naming.
- At a stop the outbox drain's writes take half of `ReleaseTimeout`.
- `fluentcms.rate_limit.refused` gains the policy value
`client-registration`.

With #3713 and #3717 no end-to-end case is left out on WebKit. The
end-to-end project now references
`Microsoft.EntityFrameworkCore.Sqlite`, at the version already pinned,
to write a login into the test host's database.

The decisions the issues left open are recorded on #3604, #3606 (ADR
0009) and #3553. What the reviews left for later is on the follow-up
lists #3608, #3609, #3610 and #3611, with the lines the notes of the
next release owe. #3587 and #3581 were left out of the batch and stay
open.

Checked on the feature branch before this pull request: a quick run of
`CI` with the Firefox and WebKit end-to-end jobs, green on every job
(run 45890126997).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:jobs Job runner and scheduled jobs type:chore Repository, tooling or housekeeping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant