IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changes between Version 68 and Version 69 of STS.refstack.20120510


Ignore:
Timestamp:
Jun 21, 2012, 1:02:08 PM (14 years ago)
Author:
Mark Huber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • STS.refstack.20120510

    v68 v69  
    960960
    961961Distribution to MOPS via publishing -
    962  * setup? how to associate label to particular datastore location for this run for IPP-MOPS-TEST-2
     962 * setup -- how to associate label to particular datastore location for this run for IPP-MOPS-TEST-2
    963963{{{
    964964
     
    984984}}}
    985985
     986{{{
     987pubtool -h -definerun
     988
    986989-definerun:
    987990  -set_label      set label
    988   -client_id      search by client_id     -- should this be set client_id??
     991  -client_id      search by client_id     -- should this be set client_id or is search include set to use this client_id??
    989992  -label          set and search by label
    990993  -data_group     search by data_group
     
    9981001  -simple         use simple output format?
    9991002  -limit          limit result set
    1000 
    1001  * should simply be
     1003}}}
     1004
     1005 * simply just 
    10021006{{{
    10031007pubtool -dbname gpc1 -definerun -label STS.mopsdiff.mehtest -simple -pretend
    10041008
    1005 --> but how to make only to only go to client_id=12?
    1006 }}}
    1007 
    1008 {{{
    1009 --> will need to add label to publishing + add info to stdscience to tell where to put out too -- this is what needed.. similar for distribution --
    1010 --> so what has used client_id 12? nothing
    1011 --> should add comment line for each entry field.. -- see survey.pro --  <tag>  <label>  <client_id>  <comment>
    1012 --> so what does <tag> do? allows multiple entries per label and is a unique key, ie for the .ds for example to be able to push out to other locations being magicked, so not important now? still needs to be different so call STS.test
    1013 
     1009--> but how to direct only to go to client_id=12?
     1010}}}
     1011
     1012 * survey.pro pantasks module in stdscience
     1013  * will need to add label to publishing + add info to stdscience to tell where to put out too -- this is what needed.. similar for distribution --
     1014  * what has used client_id 12? nothing permanent in the ~ipp/stdscience/input file.
     1015  * format to use in stdscience from survey.pro:   <tag>  <label>  <client_id>  <comment>
     1016   * what does <tag> do? allows multiple entries per label and is a unique key. The .ds for example, to be able to push out to other locations being magicked (though not implemented now). Still should be different, so call STS.test
     1017
     1018{{{
    10141019survey.add.publish STS.mopsdiff STS.mopsdiff.mehtest 12 NULL
    10151020
    10161021survey.del.publish STS.mopsdiff
    1017 
    1018 --> careful STS.nightlyscience already defn to go to 5 --  survey.add.publish STS  STS.nightlyscience 5 NULL
    1019 --> faults! why is it trying to put to LAP?? and not just LAP, MOPS and MOPS-TEST too..
     1022--> to remove if needed
     1023}}}
     1024  * careful, STS.nightlyscience already defined to go to 5 --  survey.add.publish STS  STS.nightlyscience 5 NULL
     1025
     1026 * faults! why is it trying to put to LAP? and not just LAP, but MOPS and MOPS-TEST too..
     1027{{{
    10201028system failure for: publish_file.pl --pub_id 422412 --camera GPC1 --workdir neb://any/gpc1/IPP-MOPS-LAP --product IPP-MOPS-LAP --stage diff --stage_id 242192 --output_forma
    10211029t 2 --redirect-output --need-magic --dbname gpc1 --verbose
    10221030}}}
    10231031
    1024  * run manually
     1032 * run manually and see what is happening
    10251033{{{
    10261034publish_file.pl --pub_id 422376 --camera GPC1 --workdir neb://any/gpc1/IPP-MOPS-TEST-2/ --product IPP-MOPS-TEST-2 --stage diff --stage_id 242198 --output_format 2 --redirect-output --dbname gpc1 --verbose
    10271035
    1028 
    10291036neb://any/gpc1/IPP-MOPS-TEST-2/
    1030 --> loads of things in this dir - and why reports many not found because cleaned?
    1031 }}}
    1032 
    1033  * should be careful running pubtool and using survey task, pubtool generically loaded for all then..
    1034 
    1035  * fault from log -- could this astrom issue be because STS fields or improper run?
     1037--> many things in this directory -- and why reports many not found because cleaned?
     1038}}}
     1039
     1040'''-- MISTAKE -- should be careful manually running pubtool and loading into survey task'''
     1041
     1042 * fault from specific log -- could this astrom issue be because STS fields or improper run?
    10361043{{{
    10371044neb://any/gpc1/IPP-MOPS-TEST-2//IPP-MOPS-TEST-2.422401.log
     
    10421049Running [/home/panstarrs/ipp/psconfig/ipp-20120404.lin64/bin/pubtool -add -pub_id 422401 -path_base neb://any/gpc1/IPP-MOPS-TEST-2//IPP-MOPS-TEST-2.422401 -dtime_script 2.99998372793198 -hostname ippc10 -fault 2 -dbname gpc1]...
    10431050
    1044 astrom is sqrt($comp->{sigma_ra_2}**2 + $comp->{sigma_dec_2}**2)
    1045 }}}
    1046 
    1047 {{{
     1051--> note astrom is sqrt($comp->{sigma_ra_2}**2 + $comp->{sigma_dec_2}**2)
     1052
     1053--> the diffim this is for
    10481054neb://ipp007.0/meh/STS.mopsdiff.mehtest/STS.V4/skycell.1.02/STS.V4.skycell.1.02.WS.dif.242223
    10491055meh/STS.mopsdiff.mehtest/STS.V4/skycell.1.02/STS.V4.skycell.1.02.WS.dif.242223.cmf
     
    10531059/data/ipp007.0/nebulous/14/91/2095815037.meh:STS.mopsdiff.mehtest:STS.V4:skycell.1.02:STS.V4.skycell.1.02.WS.dif.242223.inv.cmf
    10541060
    1055 neb://ipp008.0/meh/STS.mopsdiff.mehtest/STS.V4/skycell.1.03/STS.V4.skycell.1.03.WS.dif.242223
    1056 
    1057 --> publish_file.pl called from publish.pro -
     1061--> and publish_file.pl called from publish.pro -
    10581062$run = publish_file.pl --pub_id $PUB_ID --camera $CAMERA --workdir $WORKDIR --product $PRODUCT --stage $STAGE --stage_id $STAGE_ID --output_format $OUTPUT_FORMAT --redirect-output       
    10591063                                             
     
    10611065}}}
    10621066
    1063  * attempt to revert -
     1067 * attempt to revert - not going to fix
    10641068{{{
    10651069pubtool -dbname gpc1 -revert -fault 2 -pub_id 422401
    10661070}}}
    1067   * does it still need to be added to distribution so that it ends up on the datastore? no looks like in the log that pubtool is run
    1068 
    1069  * publish cleanup/drop -
     1071
     1072 * publish cleanup -- drop all the extra runs trying to publish to the other client_id
    10701073{{{
    10711074pubtool -dbname gpc1 -updaterun -set_state drop -label STS.mopsdiff.mehtest -client_id 1
     
    10731076pubtool -dbname gpc1 -updaterun -set_state drop -label STS.mopsdiff.mehtest -client_id 13
    10741077--> leaves 27 with client_id=12 are all valid? look at stage_id
     1078
    10751079select pub_id,diff_id,diffRun.data_group from publishRun join publishDone using (pub_id) join diffRun  where publishRun.label like "STS.mopsdiff.mehtest" and publishRun.state="new" and diff_id=stage_id;
    1076 --> missing 110918 oddly, they've ended up in another client_id.. ugh..
     1080--> missing 20110918 oddly, they've ended up in another client_id..
    10771081}}}
    10781082