Ark.Framework.Jobs
9.1.0
dotnet add package Ark.Framework.Jobs --version 9.1.0
NuGet\Install-Package Ark.Framework.Jobs -Version 9.1.0
<PackageReference Include="Ark.Framework.Jobs" Version="9.1.0" />
<PackageVersion Include="Ark.Framework.Jobs" Version="9.1.0" />
<PackageReference Include="Ark.Framework.Jobs" />
paket add Ark.Framework.Jobs --version 9.1.0
#r "nuget: Ark.Framework.Jobs, 9.1.0"
#:package Ark.Framework.Jobs@9.1.0
#addin nuget:?package=Ark.Framework.Jobs&version=9.1.0
#tool nuget:?package=Ark.Framework.Jobs&version=9.1.0
Ark.Framework.Jobs
The job runner for Ark: runs ArkJobs on their schedules or when an administrator starts
them, keeps every run and its log in the CMS database, and serves them to a CMS UI. The CMS's
own periodic work runs as jobs on a site that has it.
Install
dotnet add package Ark.Framework.Jobs - requires Ark.Framework.Infrastructure, Ark.Framework.AspNetCore and Ark.Framework.Jobs.Abstractions.
Setup
builder.Services.AddArk<ContentTypeKey>(ark =>
{
...
ark.UseJobs<ContentTypeKey>(j => j
.Add<ExpiredEventsJob>()
.Add<ReportJob>(JobSchedule.DailyAt(new TimeOnly(3, 0))));
});
app.MapGroup("").RequireAuthorization().MapArkJobs(); // /api/jobs, Admin only
Add a migration after turning it on: it adds ArkJobRuns, ArkJobRunLogs and ArkJobSettings.
Main entry points
UseJobs<T>(...)- turns on the runner and the built-in jobs.JobsBuilder- adds jobs, changes built-in schedules, run retention and polling.MapArkJobs()- the jobs API, Admin only.IArkJobService- the same without HTTP.
HTTP endpoints
| Request | Does |
|---|---|
GET /api/jobs |
every job: key, name, description, schedule, enabled, turnedOffInConfiguration, runOn, nextRunAt, running, lastRun |
GET /api/jobs/{key}/runs?page=&pageSize= |
a job's runs, newest first |
GET /api/jobs/runs/{id}?afterLogId= |
{ run, log }; with afterLogId, only newer lines |
POST /api/jobs/{key}/run |
queues a manual run: 202, or 409 |
POST /api/jobs/runs/{id}/cancel |
cancels a queued run or asks a running one to stop: 202, or 409 when it has ended |
PUT /api/jobs/{key}/enabled |
{ "enabled": false } turns a job off or on: 200, or 409 when configuration keeps it off |
Configuration
Configuration overrides a job's schedule, switches it off or changes its run retention without
a release (Ark:Jobs:{key}):
{ "Ark": { "Jobs": { "expired-events": { "Schedule": "Every 06:00:00", "Enabled": false, "RunRetention": "7.00:00:00" } } } }
Notes
- Built-in jobs:
ark-job-run-cleanup(daily 03:00 UTC),ark-publish-schedule,ark-staged-file-cleanup,ark-bin-cleanup, andark-search-reindexwithUseSearch. - A job never runs twice at once; a scheduled run due during one is recorded as
Skipped. - Cancelling is cooperative: a running job stops where it checks its
CancellationToken, so check it where stopping leaves the work in a good state. - A one-instance job runs where its lease is held; a run left
Runningby a stopped instance endsAbandoned. - Missed slots while the site was down give one run, not one per slot; a manual run doesn't move the schedule.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Ark.Framework.AspNetCore (>= 9.1.0)
- Ark.Framework.Infrastructure (>= 9.1.0)
- Ark.Framework.Jobs.Abstractions (>= 9.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 9.1.0 | 0 | 11/23/2026 |
v9.1.0: Public packages, content type display texts, search sort order, Markdown images and tables
**Breaking for the CMS UI package**
- The npm package is renamed from `@ark/cms` to `@arkframework/cms` (and `@ark/cms/client` to `@arkframework/cms/client`). Change the dependency and the imports. To install a release candidate, map the scope to the cms-packages feed in `.npmrc`: `@arkframework:registry=https://pkgs.dev.azure.com/antonkronosjo/CMS/_packaging/cms-packages/npm/registry/`.
**New**
- Public packages: stable versions are published to nuget.org (`Ark.Framework.*`) and npmjs.org (`@arkframework/cms`), so a site needs no feed for them. Release candidates stay on the cms-packages feed.
- Release notes: every package carries its release's notes (`<releaseNotes>` in the `.nuspec`), shown on nuget.org.
- Content type display texts: `[DisplayText(language, name)]` on a content type, settings type, property or tab (`Tab = "..."`), repeatable per CMS language, with `Description`, and `Group` on a content type. The API sends them as `displayTexts` on `GET /api/content/types`, the creation, update and settings schemas and `GET /api/settings`. The CMS UI shows them - create picker names, descriptions and groups, field labels and help texts, tab and type names - before the site's `resources`.
- Search sort order: `o.Sorts` on `MapArkSearch` lists the index fields visitors may sort by, such as `SearchSchema.FirstPublishedField`. `GET /api/search?sort={field}&desc=true` picks one; without `sort` the order is best match first, as before. A sort the site didn't allow is a 400; a field in `o.Sorts` that can't be sorted on stops the site at startup. `searchContent` in `@arkframework/cms/client` takes `sort` and `desc`.
**Fixed**
- The CMS Markdown editor keeps images, GFM tables and raw HTML. Before, editing any text saved it without its images and tables, and with its HTML escaped. A table may be saved reformatted, with the same cells.
**Docs**
- Guide: a section on the CMS editor UI, and where stable versions and release candidates come from.
No migrations.