IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2022, 4:31:43 PM (4 years ago)
Author:
eugene
Message:

macro to turn on/off option to allow stacks with invalid input warp states; speed up queuing for staticsky jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/stack.pro

    r38062 r42098  
    2727
    2828### Database lists
    29 $stackSkycell_DB = 0
    30 $stack_revert_DB = 0
    31 $stackSummary_DB = 0
     29if (not($?stackSkycell_DB)) set stackSkycell_DB = 0
     30if (not($?stack_revert_DB)) set stack_revert_DB = 0
     31if (not($?stackSummary_DB)) set stackSummary_DB = 0
     32
     33if (not($?stackIgnoreWarpState))
     34  $stackIgnoreWarpState =
     35end
     36
     37# is this name ridiculous?
     38macro stack.ignore.warp.stack.set
     39  if ($0 != 2)
     40    echo "USAGE: stack.ignore.warp.stack.set (on/off)"
     41    break
     42  end
     43
     44  if ("$1" == "on")
     45    $stackIgnoreWarpState = -ignore-warp-state
     46  else
     47    $stackIgnoreWarpState =
     48  end
     49  stack.ignore.warp.stack.get
     50end
     51macro stack.ignore.warp.stack.get
     52  if ("$stackIgnoreWarpState" == "-ignore-warp-state")
     53    echo "stackIgnoreWarpState is now ON : $stackIgnoreWarpState"
     54    return
     55  end
     56  if ("$stackIgnoreWarpState" == "")
     57    echo "stackIgnoreWarpState is now OFF : $stackIgnoreWarpState"
     58    return
     59  end
     60
     61  echo "stackIgnoreWarpState has an unexpected value : $stackIgnoreWarpState"
     62end
    3263
    3364### Check status of stacking tasks
     
    115146  task.exec
    116147    if ($LABEL:n == 0) break
    117     $run = stacktool -tosum
     148    $run = stacktool -tosum $stackIgnoreWarpState
    118149    if ($DB:n == 0)
    119150      option DEFAULT
Note: See TracChangeset for help on using the changeset viewer.