Skip to content

Commit

Permalink
Only show transferring state from the current job. #3931
Browse files Browse the repository at this point in the history
  • Loading branch information
bbockelm committed Feb 14, 2014
1 parent 77eae1a commit 979da25
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/condor_shadow.V6.1/baseshadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1318,8 +1318,11 @@ BaseShadow::updateJobInQueue( update_t type )
}
// If we're in user-mode stageout, pretend to be transferring.
// This way, users can see what their jobs are doing via "condor_q".
long long user_stageout;
if (jobAd->EvaluateAttrInt(ATTR_USER_STAGEOUT_START, user_stageout) && (download_status == XFER_STATUS_UNKNOWN))
long long user_stageout, current_start;
if (jobAd->EvaluateAttrInt(ATTR_JOB_CURRENT_START_DATE, current_start) &&
jobAd->EvaluateAttrInt(ATTR_USER_STAGEOUT_START, user_stageout) &&
(user_stageout >= current_start) &&
(download_status == XFER_STATUS_UNKNOWN))
{
ftAd.InsertAttr(ATTR_TRANSFER_QUEUED,false);
ftAd.InsertAttr(ATTR_TRANSFERRING_OUTPUT,true);
Expand Down

0 comments on commit 979da25

Please sign in to comment.