Add Python bindings for WQ keepalive API.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2553 a4d8336d-3463-0410-8bba-c098c45d37a8
allpairs_master and wavefront_master now accept the -Z <port_file> flag, to write the port selected arbitrarily.

allpairs_master now accepts -o <output_file>, as an alternative to stdout.

The respective tests now use the -Z flag for port selection.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2487 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	dttools/src/stringtools.c
	wavefront/src/wavefront.c
	wavefront/test/TR_wavefront_001_sum_test.sh
	wavefront/test/TR_wavefront_master_001_sum_test.sh
	wavefront/test/gen_ints_wf.sh
	wavefront/test/gen_ints_wfm.sh
Add missing python binding for work_queue_specify_log().

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2488 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	work_queue/src/python/work_queue.binding.py
allpairs test use the -Z flag for automatic port selection.  Also, instead of
line count, a test was changed to explicitely verify that the output generated
by allpairs is correct.

To avoid confusion, string_combine now declares constant its second argument.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2490 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	dttools/src/stringtools.c
	dttools/src/stringtools.h
	wavefront/src/wavefront.c
makeflow support for the flag -Z <port_file> for automatic port
selection.

TR_makeflow_001_dirs_*.sh refactored to use this flag.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2493 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	makeflow/src/makeflow.c
Updated documentation to include -Z file, writing port to a file.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2494 a4d8336d-3463-0410-8bba-c098c45d37a8
Remove redundant check for the case when a message wasn't received from a worker
since its last keepalive check.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2496 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	dttools/src/work_queue.c
Guard against possible overflow when finding the difference between two timestamps.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2497 a4d8336d-3463-0410-8bba-c098c45d37a8
Adding missing files to allpairs test.

wavefront -T<batch> now makes -D redundant.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2501 a4d8336d-3463-0410-8bba-c098c45d37a8
makeflow -R flag was missing in the documentation.

Fixed composite number test for all_pairs.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2504 a4d8336d-3463-0410-8bba-c098c45d37a8
header organization

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2512 a4d8336d-3463-0410-8bba-c098c45d37a8
Move code around so we don't need top-level function declarations.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2513 a4d8336d-3463-0410-8bba-c098c45d37a8
Getting bit by the following events during cancel task:
1. Master sends a cancel task message to worker, marks the worker as cancelling,
and hands the cancelled task back to user space.
2. User gets the task and deletes it.
3. The cancelling worker now gets back to master; master tries to read but for
some reason reading from their link fails.
4. Master disconnects and removes the worker due to this failure. And it adds
the worker's (cancelled and deleted) task back to ready list.
5. Later, master gets this task from ready list and schedules it on an available
worker.
6. Hell breaks loose.

This commit fixes this.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2516 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	dttools/src/work_queue.c
A better alternative to rev 2516 is to reset the cancelled worker's current task
right after sending the kill message.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2519 a4d8336d-3463-0410-8bba-c098c45d37a8
Fix memory leaks found by valgrind.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2520 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	dttools/src/work_queue.c
fixed memory leaks as reported by Dinesh. Now list/hash_table(s) related to 'WQ accouting' and 'worker pool info' are cleaned thoroughly in work_queue_delete().

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2521 a4d8336d-3463-0410-8bba-c098c45d37a8
Add Python bindings for WQ keepalive API.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2553 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	work_queue/src/python/work_queue.binding.py
Add makeflow options to set WQ keepalive parameters.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2554 a4d8336d-3463-0410-8bba-c098c45d37a8

Conflicts:
	makeflow/src/makeflow.c
Add comments in string interpolation function to describe why we do certain
things.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2555 a4d8336d-3463-0410-8bba-c098c45d37a8
Reorganize code such that all the public work queue functions are bunched
together and separated from the internal functions.

git-svn-id: file:///afs/nd.edu/user37/ccl/svn/cctools/trunk@2559 a4d8336d-3463-0410-8bba-c098c45d37a8