Skip to content

Commit

Permalink
executing ansible runner artifacts clean up with fixed delay
Browse files Browse the repository at this point in the history
Ansible-Runner artifacts are cleaned up periodically according to the properties
configured in engine-config:
AnsibleRunnerArtifactsLifetimeInDays: How many days artifacts will be kept before
they are cleaned up
AnsibleRunnerArtifactsCleanupCheckTimeInHours: The periodic time to execute the clean up

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2151549
Signed-off-by: dangel101 <dangel101@gmail.com>
  • Loading branch information
dangel101 authored and mwperina committed Jan 5, 2023
1 parent c9ffda3 commit 68e5a98
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ public void scheduleJob() {
final int HOURS_TO_MINUTES = 60;
long intervalInMinutes = Math.round(interval * HOURS_TO_MINUTES);

executor.schedule(this::checkExecutionTimeStamp,
executor.scheduleWithFixedDelay(this::checkExecutionTimeStamp,
10,
intervalInMinutes,
TimeUnit.MINUTES);
}
Expand Down

0 comments on commit 68e5a98

Please sign in to comment.