phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Phpgroupware-developers] async service question


From: Brian Johnson
Subject: RE: [Phpgroupware-developers] async service question
Date: Fri, 30 Apr 2004 13:51:11 +0000

I think the entire concept of async is that it does not need to be run by
individual apps .. they just put entries in the table and async will process
them at the next run (to see if it should do something with it or leave it
until a future run).  Although it's possible for an app to run the async code
.. I don't think it is necessary or even desirable since it takes the ability
away from the system admin to specify the run frequency

Does async run properly for you?  I have a linux server running cron and if I
set an appointment for 2 hours from now and ask for a reminder 30 minutes
before the appointment, it could be days before I get the email from async
(this is on a local email server that normally processes internal mail in less
than a minute)



Dirk Schaller (address@hidden) wrote:
>
> > I think it is supposed to be the timestamp of the last run.
> > The async cronjob runs the same for all users and runs a
> > php script that uses the phpgw_async table to see what it
> > should do (all user's async entries are stored in this one
> > table I think)
>
> Yes, I agree with you
>
>
> > I should re-state, that I have not been able to get the async
> > services to run reliably and took a look at the code which was
> > hard for me to follow due to the way it locks the table to make
> > sure two runs do not happen at the same time.
> >
> > I think it uses the '##last-check-run##' to determine if the
> > last run finished successfully before it starts another run.
> > Maybe you could use a similar concept?
>
> The '##last-check-run##' is okay for control all async services.
> But it makes no sense to go the same way for each application and
> store the last run of the application in an own async entry like
> '##last-<app_name>-run##'. The right plave for such a timestamp
> info is in my view the data field of the async entry, bacause one
> application could be more than one async entries which have to be
> independend from each other. So there is the nned to store the
> timestamp in the entry itself.
>
> Why is there a data field when I couldnt edit it during the async
> run? That is the main think I dont understand. So I decide to make
> it possible and provide it as patch.
>
>
> > I would really like to use the features provided by this
> > sytem to the calendar app, but I could use help in getting
> > it to be reliable.  The developer who wrote it is no longer
> > maintaining it.
>
> I didnt make any changes to get the async service running.
> ceb use it in the projects module (see projects from head or ask
> her for further information).
>
> We use the async service both under Windows (over fallback)
> and under Linux in combination with cron.
>
>
> _______________________________________________
> Phpgroupware-developers mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]