s/mechanism will used/mechanism will be used/

Otherwise LGTM, no need to resend.


On Thu, Feb 6, 2014 at 6:30 PM, Klaus Aehlig <[email protected]> wrote:

> With the job files, we already have designated files per job. So
> there is no need to additionally signal through a socket regular
> job termination. This design also has the advantage that it is
> already implemented and working in current luxid.
>
> Signed-off-by: Klaus Aehlig <[email protected]>
> ---
>  doc/design-daemons.rst | 21 +++++++--------------
>  1 file changed, 7 insertions(+), 14 deletions(-)
>
> diff --git a/doc/design-daemons.rst b/doc/design-daemons.rst
> index 7169a30..6f88f9b 100644
> --- a/doc/design-daemons.rst
> +++ b/doc/design-daemons.rst
> @@ -490,20 +490,13 @@ Further considerations
>
>  There is a possibility that a job will finish performing its task while
> LuxiD
>  and/or WConfD will not be available.
> -In order to deal with this situation, each job will write the results of
> its
> -execution on a file. The name of this file will be known to LuxiD before
> -starting the job, and will be stored together with the job ID, and the
> -name of the job-unique socket.
> -
> -The job, upon ending its execution, will signal LuxiD (through the
> socket), so
> -that it can read the result of the execution and release the locks as
> needed.
> -
> -In case LuxiD is not available at that time, the job will just terminate
> without
> -signalling it, and writing the results on file as usual. When a new LuxiD
> -becomes available, it will have the most up-to-date list of running jobs
> -(received via replication from the former LuxiD), and go through it,
> cleaning up
> -all the terminated jobs.
> -
> +In order to deal with this situation, each job will update its job file
> +in the queue. This is race free, as LuxiD will no longer touch the job
> file,
> +once the job is started; a corollary of this is that the job also has to
> +take care of replicating updates to the job file. LuxiD will watch job
> files for
> +changes to determine when a job as cleanly finished. To determine jobs
> +that died without having the chance of updating the job file, the `Job
> death
> +detection`_ mechanism will used.
>
>  .. vim: set textwidth=72 :
>  .. Local Variables:
> --
> 1.9.0.rc1.175.g0b1dcb5
>
>

Reply via email to