Visit Azul.com Support

Clean-Jbatch-Repository

Table of Contents
Need help?
Schedule a consultation with an Azul performance expert.
Contact Us

Deletes records of Jakarta Batch job executions.

Synopsis

 
asadmin [asadmin-options] clean-jbatch-repository [--status={COMPLETED|ALL}] [--days] days [job_name]

Description

The clean-jbatch-repository subcommand will remove the history of all job records related to an specific Jakarta Batch execution job.

Options

asadmin-options: Options for the asadmin utility. For information about these options, see the asadmin help page. --help: -?: Displays the help text for the subcommand. --status: The status of batch jobs executions to which delete the records of. Valid values are as follows:
COMPLETED;; Only job executions that successfully completed will be deleted. ALL;; All job executions will be deleted, regardless of status. --days: The number of days previous that the end time of the job execution must be to get deleted.

+ Defaults to 1 day

Operands

job_name: The name of the Jakarta Batch job that will be cleared in the repository.

Examples

The following command will delete all job records for the testjob job that were executed before 7 days ago.

 
asadmin > clean-jbatch-repository --status=ALL --days=7 testjob

Exit Status

0: subcommand executed successfully 1: error in executing the subcommand

See Also