Changeset 7270


Ignore:
Timestamp:
Jan 16, 2017, 1:15:36 PM (6 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #2051: Job status information is not updated after "Abort" has been requested

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Job.java

    r7266 r7270  
    11661166  {
    11671167    checkPermission(Permission.WRITE);
    1168     if (getStatus() != Status.EXECUTING && getStatus() != Status.PREPARED)
     1168    Job.Status status = getStatus();
     1169    if (status != Status.EXECUTING && status != Status.PREPARED && status != Status.ABORTING)
    11691170    {
    11701171      throw new PermissionDeniedException("Cannot set progress for a job with status '"+getStatus()+"': "+toString());
  • trunk/www/views/jobs/jobs.js

    r7118 r7270  
    185185        nextTimeout = 100;
    186186      }
    187       if (status == 'EXECUTING')
     187      if (status == 'EXECUTING' || status == 'ABORTING')
    188188      {
    189189        jobs.displayProgress(percentComplete, message, runningTime);
Note: See TracChangeset for help on using the changeset viewer.