Package io.kestra.core.tasks.storages
Class Purge
java.lang.Object
io.kestra.core.models.tasks.Task
io.kestra.core.tasks.storages.Purge
- All Implemented Interfaces:
RunnableTask<Purge.Output>
@Plugin(examples=@Example(title="Purge all flow execution data for flows ended more than one month ago.",code={"endDate: \"{{ now() | dateAdd(-1, \'MONTHS\') }}\"","states: "," - KILLED"," - FAILED"," - WARNING"," - SUCCESS"}))
public class Purge
extends Task
implements RunnableTask<Purge.Output>
-
Nested Class Summary
Nested Classes -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrun(RunContext runContext) Thsis method is called inside the Worker to run (execute) the task.Methods inherited from class io.kestra.core.models.tasks.Task
findById, findById, isFlowable, isSendToWorkerTask
-
Constructor Details
-
Purge
public Purge()
-
-
Method Details
-
run
Description copied from interface:RunnableTaskThsis method is called inside the Worker to run (execute) the task.- Specified by:
runin interfaceRunnableTask<Purge.Output>- Throws:
Exception
-