Skip to content

Commit

Permalink
0002836: Reduce checks for old files in stage management
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Sep 29, 2016
1 parent 4d538d8 commit bff47f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -779,7 +779,7 @@ job.refresh.cache.cron=0/30 * * * * *
#
# DatabaseOverridable: true
# Tags: jobs
job.stage.management.period.time.ms=15000
job.stage.management.period.time.ms=900000

# This is how often the initial load extract queue job will run in the background
#
Expand Down
Expand Up @@ -98,7 +98,7 @@ public long clean(long ttlInMs) {
if ((resource.getState() == State.DONE ||
(resource.getState() == State.READY && resource.getPath().contains("/common/")) ||
(resource.getState() == State.READY && ttlInMs == 0))
&& (resourceIsOld || !resource.exists())) {
&& resourceIsOld) {
if (!resource.isInUse()) {
boolean file = resource.isFileResource();
long size = resource.getSize();
Expand Down

0 comments on commit bff47f8

Please sign in to comment.