Changes between Version 4 and Version 5 of qcg_usage_examples

Show
Ignore:
Timestamp:
09/20/11 20:53:05 (13 years ago)
Author:
piontek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • qcg_usage_examples

    v4 v5  
    11[[PageOutline]] 
    22 
    3 Poniższy przykład prezentuje opis eksperymentu (QCG-Broker Job Profile) polegającego na wykonaniu zestawu zadań (parameter sweep) uruchamiających unixowe polecenie ''cal'' (kalendarz) dla zadanego przedziału miesięcy (od stycznia do grudnia z pominięciem marca i czerwca). 
     3Poniższy przykład prezentuje opis eksperymentu (QCG-Broker Job Profile) polegającego na wykonaniu zestawu zadań (parameter sweep) uruchamiających unixowe polecenie ''cal'' (kalendarz) dla zadanego przedziału miesięcy (od stycznia do lipca z pominięciem marca i czerwca). 
    44 
    55{{{ 
     
    3232                                        <loop> 
    3333                                                <start>1</start> 
    34                                                 <end>12</end> 
     34                                                <end>7</end> 
    3535                                                <step>1</step> 
    3636                                                <except> 
     
    8686 
    8787= job_info = 
    88 * `job_info <jobId> <showJobProfile>` - wyświetlenie informacji o danym eksperymencie. Argument `<showJobProfile>` argument of boolean type specifies whether the Job Profile should be displayed or not. 
     88* `job_info <jobId> <showJobProfile>` - wyświetlenie informacji o danym eksperymencie. Argument `<showJobProfile>` określa czy ma być wyświetlony opis exksperymentu (domyślną wartością jest ''false''). 
    8989{{{ 
    9090#!div style="font-size: 90%" 
     
    100100SubmissionTime: Mon May 16 14:55:54 CEST 2011 
    101101FinishTime: Mon May 16 14:56:42 CEST 2011 
    102 Number of tasks: 10 
    103 Tasks: calendar_PSit0 calendar_PSit1 calendar_PSit2 calendar_PSit3 calendar_PSit4 calendar_PSit5 calendar_PSit6 calendar_PSit7 calendar_PSit8 calendar_PSit9  
    104 }}} 
    105 {{{#!sh 
    106 $ qcg-client job_info 1305550554579_calendar_example_5366 
     102Number of tasks: 5 
     103Tasks: calendar_PSit0 calendar_PSit1 calendar_PSit2 calendar_PSit3 calendar_PSit4 
     104}}} 
     105{{{#!sh 
     106$ qcg-client job_info 1305550554579_calendar_example_5366 true 
    107107UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
    108108ProxyLifetime = 0 Days 11 Hours 58 Minutes 6 Seconds 
     
    114114SubmissionTime: Mon May 16 14:55:54 CEST 2011 
    115115FinishTime: Mon May 16 14:56:42 CEST 2011 
    116 Number of tasks: 10 
    117 Tasks: calendar_PSit0 calendar_PSit1 calendar_PSit2 calendar_PSit3 calendar_PSit4 calendar_PSit5 calendar_PSit6 calendar_PSit7 calendar_PSit8 calendar_PSit9  
    118 DescriptionType: GRMS 
     116Number of tasks: 5 
     117Tasks: calendar_PSit0 calendar_PSit1 calendar_PSit2 calendar_PSit3 calendar_PSit4 
     118DescriptionType: QCG 
    119119UserDescription:  
    120120<qcgJob appId="calendar_example"> 
     
    144144          <loop> 
    145145            <start>1</start> 
    146             <end>12</end> 
     146            <end>7</end> 
    147147            <step>1</step> 
    148148            <except> 
     
    259259    </execution> 
    260260  </task> 
    261   <task persistent="true" taskId="calendar_PSit5"> 
    262     <execution type="single"> 
    263       <executable> 
    264         <execFile> 
    265           <file> 
    266             <location type="URL">file:////usr/bin/cal</location> 
    267           </file> 
    268         </execFile> 
    269       </executable> 
    270       <arguments> 
    271         <value>8.0</value> 
    272         <value>2010</value> 
    273       </arguments> 
    274       <stdout> 
    275         <file> 
    276           <location type="URL">${TASK_DIR}/stdout.txt</location> 
    277         </file> 
    278       </stdout> 
    279     </execution> 
    280   </task> 
    281   <task persistent="true" taskId="calendar_PSit6"> 
    282     <execution type="single"> 
    283       <executable> 
    284         <execFile> 
    285           <file> 
    286             <location type="URL">file:////usr/bin/cal</location> 
    287           </file> 
    288         </execFile> 
    289       </executable> 
    290       <arguments> 
    291         <value>9.0</value> 
    292         <value>2010</value> 
    293       </arguments> 
    294       <stdout> 
    295         <file> 
    296           <location type="URL">${TASK_DIR}/stdout.txt</location> 
    297         </file> 
    298       </stdout> 
    299     </execution> 
    300   </task> 
    301   <task persistent="true" taskId="calendar_PSit7"> 
    302     <execution type="single"> 
    303       <executable> 
    304         <execFile> 
    305           <file> 
    306             <location type="URL">file:////usr/bin/cal</location> 
    307           </file> 
    308         </execFile> 
    309       </executable> 
    310       <arguments> 
    311         <value>10.0</value> 
    312         <value>2010</value> 
    313       </arguments> 
    314       <stdout> 
    315         <file> 
    316           <location type="URL">${TASK_DIR}/stdout.txt</location> 
    317         </file> 
    318       </stdout> 
    319     </execution> 
    320   </task> 
    321   <task persistent="true" taskId="calendar_PSit8"> 
    322     <execution type="single"> 
    323       <executable> 
    324         <execFile> 
    325           <file> 
    326             <location type="URL">file:////usr/bin/cal</location> 
    327           </file> 
    328         </execFile> 
    329       </executable> 
    330       <arguments> 
    331         <value>11.0</value> 
    332         <value>2010</value> 
    333       </arguments> 
    334       <stdout> 
    335         <file> 
    336           <location type="URL">${TASK_DIR}/stdout.txt</location> 
    337         </file> 
    338       </stdout> 
    339     </execution> 
    340   </task> 
    341   <task persistent="true" taskId="calendar_PSit9"> 
    342     <execution type="single"> 
    343       <executable> 
    344         <execFile> 
    345           <file> 
    346             <location type="URL">file:////usr/bin/cal</location> 
    347           </file> 
    348         </execFile> 
    349       </executable> 
    350       <arguments> 
    351         <value>12.0</value> 
    352         <value>2010</value> 
    353       </arguments> 
    354       <stdout> 
    355         <file> 
    356           <location type="URL">${TASK_DIR}/stdout.txt</location> 
    357         </file> 
    358       </stdout> 
    359     </execution> 
    360   </task> 
    361261</qcgJob> 
    362262}}} 
    363263}}} 
    364264= tasks_statuses = 
    365 * `tasks_statuses <jobId>` - lists tasks constituting the given job with their statuses. 
     265* `tasks_statuses <jobId>` - wyświetla listę zadań wchodzących w skład eksperymentu wraz z ich statusami. 
    366266{{{ 
    367267#!div style="font-size: 90%" 
     
    371271ProxyLifetime = 0 Days 11 Hours 41 Minutes 30 Seconds 
    372272 
    373 Number of tasks: 10 
     273Number of tasks: 5 
    374274Tasks statuses:  
    375 calendar_PSit7  : FINISHED 
    376 calendar_PSit6  : FINISHED 
    377 calendar_PSit5  : FINISHED 
    378275calendar_PSit4  : FINISHED 
    379276calendar_PSit3  : FINISHED 
     
    381278calendar_PSit1  : FINISHED 
    382279calendar_PSit0  : FINISHED 
    383 calendar_PSit9  : FINISHED 
    384 calendar_PSit8  : FINISHED 
    385280------ SUMMARY -------- 
    386 Number of tasks: 10 
    387 FINISHED        : 10 
     281Number of tasks: 5 
     282FINISHED        : 5 
    388283}}} 
    389284}}} 
    390285 
    391286= task_info = 
    392 * `task_info <jobId> <taskId>` - displays information about the given job 
    393 {{{ 
    394 #!div style="font-size: 90%" 
    395 {{{#!sh 
    396 qcg-client task_info 1305550554579_calendar_example_5366 calendar_PSit0 
     287* `task_info <jobId> <taskId> [<showJobProfile>]` - wyświetla informację o danym zadaniu. 
     288{{{ 
     289#!div style="font-size: 90%" 
     290{{{#!sh 
     291qcg-client task_info 1305550554579_calendar_example_5366 calendar_PSit0 true 
    397292UserDN = /C=PL/O=GRID/O=PSNC/CN=Tomasz Piontek 
    398293ProxyLifetime = 0 Days 11 Hours 40 Minutes 11 Seconds