IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2009, 1:41:56 PM (17 years ago)
Author:
Paul Price
Message:

Adding 'difftool -advance' mode, with accompanying pantasks task definition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/diff.pro

    r24595 r25509  
    1414### Database lists
    1515$diffSkycell_DB = 0
     16$diffAdvance_DB = 0
    1617#$diffCleanup_DB = 0
    1718
     
    3637    active true
    3738  end
     39  task diff.advance
     40    active true
     41  end
    3842end
    3943
     
    4448  end
    4549  task diff.skycell.run
     50    active false
     51  end
     52  task diff.advance
    4653    active false
    4754  end
     
    198205  end
    199206end
     207
     208
     209# Advance exposures which have completed
     210task           diff.advance
     211  host         local
     212
     213  periods      -poll $LOADPOLL
     214#  periods      -exec $LOADEXEC
     215  periods      -exec 30
     216  periods      -timeout 60
     217  npending     1
     218
     219  stdout NULL
     220  stderr $LOGDIR/diff.advance.log
     221
     222  task.exec
     223    if ($LABEL:n == 0) break
     224    $run = difftool -advance -limit 10
     225    if ($DB:n == 0)
     226      option DEFAULT
     227    else
     228      # save the DB name for the exit tasks
     229      option $DB:$diffAdvance_DB
     230      $run = $run -dbname $DB:$diffAdvance_DB
     231      $diffAdvance_DB ++
     232      if ($diffAdvance_DB >= $DB:n) set diffAdvance_DB = 0
     233    end
     234    add_poll_args run
     235    add_poll_labels run
     236    command $run
     237  end
     238
     239  # success
     240  task.exit    0
     241  end
     242
     243  # locked list
     244  task.exit    default
     245    showcommand failure
     246  end
     247
     248  task.exit    crash
     249    showcommand crash
     250  end
     251
     252  # operation times out?
     253  task.exit    timeout
     254    showcommand timeout
     255  end
     256end
     257
     258
    200259
    201260# # select images ready for diff analysis
Note: See TracChangeset for help on using the changeset viewer.