From: Mark Bucciarelli (mark_at_easymailings.com)
Date: Thu Jun 03 2004 - 14:27:03 CEST
From: Mark Bucciarelli <mark@easymailings.com> Date: Thu, 3 Jun 2004 08:27:03 -0400 Message-Id: <200406030827.03504.mark@easymailings.com> Subject: Re: [taskjuggler-devel] karm integration?
On Wednesday 02 June 2004 18:50, Dick Kniep wrote:
> On Wednesday 02 June 2004 18:10, Joachim Werner schreef:
> > To some extend yes. But if you are rescheduling you need a controlling
> > server instance that makes sure that everything is kept in the right
> > order.
>
> Yes this is very valid, and touches on the real problem: Multi user
> planning of tasks. The reason this is important, is because hours are
> entered by different users, and should be processed by a controlling
> server instance.
The resource framework handles multi-user locking nicely, at least for
files. It only locks the file only when making a change to it. You call
beginChange() to indicate you are changing the file, and if you get a
lock, continue. Call endChange() to release the lock.
Dirwatcher is used to watch the file, and if another application modifies
the file (for example, vim), a signal is sent to all applications that
have that file open. They can do what they need to do; for example,
reload the new data.
I would imagine that task juggler would need to lock the file for it's
entire processing. Once done, any apps connected to it would be signaled
that the file had changed and they would update their displays.
I don't see why this wouldn't work for multi-user access. It's much easier
than writing a server and is also easier to install and use.
[BTW -- Currently, Karm does not take advantage of this nice
functionality--it rather stupidly locks the file on open and holds that
lock until it closes. But this will change ...]
And if the order of how things are written to the file is important, this
seems like it could (should?) be implemented in the resource layer.
Regards,
Mark
-- To unsubscribe, email: taskjuggler-devel-unsubscribe@suse.com For additional commands, email: taskjuggler-devel-help@suse.com
This archive was generated by hypermail 2.1.7 : Thu Jun 03 2004 - 14:31:31 CEST