264 | | You can easily modify this program to suit your appliation. |
| 264 | You can easily modify this program to suit your application. |
| 265 | |
| 266 | === make_work === |
| 267 | The daemon program |
| 268 | {{{ |
| 269 | make_work -wu_name name [-wu_name name2 ... ] -cushion N |
| 270 | }}} |
| 271 | creates 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 | |
| 273 | Note: 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 | |
| 275 | It may be convenient to have a script that recreates the master workunit. For example: |
| 276 | {{{ |
| 277 | cp test_workunits/12ja04aa `bin/dir_hier_path 12ja04aa` |
| 278 | bin/create_work -appname setiathome -wu_name sah_nodelete -wu_template templates/setiathome_wu_0 -result_template templates/setiathome_result_0 12ja04aa |
| 279 | }}} |