Changes between Version 11 and Version 12 of WorkGeneration


Ignore:
Timestamp:
Apr 24, 2007, 1:28:04 PM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkGeneration

    v11 v12  
    262262to find the number of unsent jobs.
    263263An example of this is sched/sample_work_generator.C.
    264 You can easily modify this program to suit your appliation.
     264You can easily modify this program to suit your application.
     265
     266=== make_work ===
     267The daemon program
     268{{{
     269make_work -wu_name name [-wu_name name2 ... ] -cushion N
     270}}}
     271creates copies of the given workunits (cyclically) as needed to maintain a supply of at least N unsent results. This is useful for testing purposes.
     272
     273Note: if you run the file_deleter and/or db_purge, the master workunit or its input files may be deleted (which will cause make_work to fail). To avoid this, give the master workunit a name that contains 'nodelete' as a substring. This causes the file_deleter and db_purge to skip over it.
     274
     275It may be convenient to have a script that recreates the master workunit. For example:
     276{{{
     277cp test_workunits/12ja04aa `bin/dir_hier_path 12ja04aa`
     278bin/create_work -appname setiathome -wu_name sah_nodelete -wu_template templates/setiathome_wu_0 -result_template templates/setiathome_result_0 12ja04aa
     279}}}