Skip to main content

ApplicationReorg

ApplicationReorg is a maintenance service that reorganizes the application.

  • The job repository is reorganized by deleting expired jobs.
Tooltip

Find ApplicationReorg configuration examples here.

Configuration

An ApplicationReorg service is configured by defining its unique name, the service type ApplicationReorg, and the configuration.

Example: ApplicationReorg

services:
MyService:
type: ApplicationReorg

In additional to the general service configuration, ApplicationReorg has the following configuration.

Job

The application executes a service by starting a job. During processing, the service may also store entities in a repository.

🔑 Property job.retention

The retention duration of jobs.

optional

The default is null (don't delete expired jobs).

If a retention duration is defined, the ApplicationReorg service determines the cutoff timestamp as the current timestamp minus the retention duration. Jobs that were started before the cutoff timestamp - as well as their entities from the landing and staging repositories - are deleted.

Note

The currently running ApplicationReorg service itself is not aborted or deleted, regardless of the retention duration.

The duration must match the regular expression ^([0-9]+(ms|[smhdwMy]))+$ and is specified using the following units:

UnitDescription
msmilliseconds
sseconds
mminutes
hhours
ddays
wweeks
Mmonths (30 days)
yyears (365 days)

For example: 1w for 1 week, 3d for 3 days, or 2h30m15s for 2 hours and 30 minutes and 15 seconds.

Example: Property job.retention

services:
MyService:
type: ApplicationReorg
job:
retention: 2w # delete jobs older than 2 weeks