2005-01-02 07:44:40 +00:00
|
|
|
<?php
|
|
|
|
require_once("docutil.php");
|
|
|
|
|
2005-01-10 20:46:33 +00:00
|
|
|
page_head("Creating work on demand");
|
2005-01-02 07:44:40 +00:00
|
|
|
echo "
|
|
|
|
<p>
|
|
|
|
The daemon program
|
|
|
|
<pre>
|
2005-01-10 20:46:33 +00:00
|
|
|
make_work -wu_name name -cushion N
|
2005-01-02 07:44:40 +00:00
|
|
|
</pre>
|
2005-02-01 21:11:08 +00:00
|
|
|
creates copies of the given 'master workunit'
|
2005-01-02 07:44:40 +00:00
|
|
|
as needed to maintain a supply of at least N unsent results.
|
2005-02-01 21:11:08 +00:00
|
|
|
This is useful for testing purposes.
|
|
|
|
<p>
|
|
|
|
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.
|
2005-01-02 07:44:40 +00:00
|
|
|
|
|
|
|
<p>
|
2005-02-01 21:11:08 +00:00
|
|
|
It may be convenient to have a script that recreates
|
|
|
|
the master workunit.
|
|
|
|
For example:
|
|
|
|
|
|
|
|
<pre>
|
|
|
|
cp test_workunits/12ja04aa `bin/dir_hier_path 12ja04aa`
|
|
|
|
bin/create_work -appname setiathome -wu_name sah_nodelete -wu_template templates/setiathome_wu_0 -result_template templates/setiathome_result_0 12ja04aa
|
|
|
|
</pre>
|
2005-01-02 07:44:40 +00:00
|
|
|
|
|
|
|
";
|
|
|
|
|
|
|
|
page_tail();
|
|
|
|
?>
|