← Back to plugin index

Flow Continuation Token Clean-up Task

Description
Task to clean up expired flow continuation tokens.

In order to minimize database locks, the task doesn't delete all expired tokens in one transaction but deletes the tokens in configurable batches.

Type name
FlowContinuationTokenCleanupTask
Class
com.airlock.iam.servicecontainer.app.application.configuration.task.continuation.FlowContinuationTokenCleanupTaskConfig
May be used by
Properties
Flow Continuation Repository (repository)
Description
Configures the repository for the flow continuation tokens.
Attributes
Plugin-Link
Mandatory
Assignable plugins
Keep Expired Tokens Duration (keepExpiredTokens)
Description
Expired tokens will not be deleted immediately after their expiration instant but kept for the configured duration. This may be useful to inform users that their tokens have expired. Tokens will be deleted once this duration has passed since their expiration.
Attributes
String
Optional
Default value
7d
Example
8h
Example
7d
Example
14d 12h
Batch Size (batchSize)
Description
During clean-up, tokens are deleted in batches of this size. This makes sure that any row locks on the database are very short-lived, not affecting parallel token modifications. This value should not be set too high to prevent very long running transactions. Token clean-up will repeat deleting this number of tokens until all expired tokens have been cleaned up. Therefore, this task can take some time when a lot of expired tokens are present. This size should be chosen so that every batch does not take longer than 5 seconds. The average runtime of the batches can be found in the task's logs.
Attributes
Integer
Optional
Default value
1000
YAML Template (with default values)

type: FlowContinuationTokenCleanupTask
id: FlowContinuationTokenCleanupTask-xxxxxx
displayName: 
comment: 
properties:
  batchSize: 1000
  keepExpiredTokens: 7d
  repository: