Re: [SSSD] Design Discussion: Periodic task API

2013-05-06 Thread Pavel Březina
On 04/29/2013 09:49 PM, Simo Sorce wrote: On Mon, 2013-04-29 at 20:55 +0200, Jakub Hrozek wrote: On Mon, Apr 29, 2013 at 08:42:30PM +0200, Pavel Březina wrote: On 04/29/2013 08:12 PM, Simo Sorce wrote: On Mon, 2013-04-29 at 20:05 +0200, Pavel Březina wrote: On 04/29/2013 07:52 PM, Simo Sorce

Re: [SSSD] Design Discussion: Periodic task API

2013-05-06 Thread Pavel Březina
On 04/25/2013 11:18 AM, Pavel Březina wrote: I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: [RFE] Add a task to the SSSD to periodically refresh cached entries I have recently created a ticket (#1891) to unite API for managing periodic tasks. We already quite a periodic tas

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Yassir Elley
Another use case for this will be future GPO work, which will need this periodic capability to retrieve/apply group policies at regular intervals. Yassir. - Original Message - > I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: > [RFE] Add a task to the SSSD to period

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Pavel Březina
On 04/29/2013 10:29 PM, Dmitri Pal wrote: On 04/29/2013 02:55 PM, Jakub Hrozek wrote: On Mon, Apr 29, 2013 at 08:42:30PM +0200, Pavel Březina wrote: On 04/29/2013 08:12 PM, Simo Sorce wrote: On Mon, 2013-04-29 at 20:05 +0200, Pavel Březina wrote: On 04/29/2013 07:52 PM, Simo Sorce wrote: On

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Dmitri Pal
On 04/29/2013 02:55 PM, Jakub Hrozek wrote: > On Mon, Apr 29, 2013 at 08:42:30PM +0200, Pavel Březina wrote: >> On 04/29/2013 08:12 PM, Simo Sorce wrote: >>> On Mon, 2013-04-29 at 20:05 +0200, Pavel Březina wrote: On 04/29/2013 07:52 PM, Simo Sorce wrote: > On Mon, 2013-04-29 at 11:54 +020

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Simo Sorce
On Mon, 2013-04-29 at 20:55 +0200, Jakub Hrozek wrote: > On Mon, Apr 29, 2013 at 08:42:30PM +0200, Pavel Březina wrote: > > On 04/29/2013 08:12 PM, Simo Sorce wrote: > > >On Mon, 2013-04-29 at 20:05 +0200, Pavel Březina wrote: > > >>On 04/29/2013 07:52 PM, Simo Sorce wrote: > > >>>On Mon, 2013-04-2

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Jakub Hrozek
On Mon, Apr 29, 2013 at 08:42:30PM +0200, Pavel Březina wrote: > On 04/29/2013 08:12 PM, Simo Sorce wrote: > >On Mon, 2013-04-29 at 20:05 +0200, Pavel Březina wrote: > >>On 04/29/2013 07:52 PM, Simo Sorce wrote: > >>>On Mon, 2013-04-29 at 11:54 +0200, Pavel Březina wrote: > > Ah, yes. If t

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Jakub Hrozek
On Mon, Apr 29, 2013 at 08:47:00PM +0200, Pavel Březina wrote: > >>> * What about online/offline callbacks? Some tasks should be re-enabled > >>>when the BE goes online or cancelled when the BE is offline > >> > >>If this is needed then you should create the task in online callback > >>and des

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Pavel Březina
On 04/29/2013 11:35 AM, Jakub Hrozek wrote: On Mon, Apr 29, 2013 at 11:07:09AM +0200, Pavel Březina wrote: On 04/29/2013 10:00 AM, Jakub Hrozek wrote: On Thu, Apr 25, 2013 at 11:18:28AM +0200, Pavel Březina wrote: I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: [RFE] Add a

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Pavel Březina
On 04/29/2013 08:12 PM, Simo Sorce wrote: On Mon, 2013-04-29 at 20:05 +0200, Pavel Březina wrote: On 04/29/2013 07:52 PM, Simo Sorce wrote: On Mon, 2013-04-29 at 11:54 +0200, Pavel Březina wrote: Ah, yes. If the request returns ERR_STOP_PERIODIC_TASK, the task will be completely destroyed, ot

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Simo Sorce
On Mon, 2013-04-29 at 20:05 +0200, Pavel Březina wrote: > On 04/29/2013 07:52 PM, Simo Sorce wrote: > > On Mon, 2013-04-29 at 11:54 +0200, Pavel Březina wrote: > >> > >> Ah, yes. If the request returns ERR_STOP_PERIODIC_TASK, the task will > >> be > >> completely destroyed, otherwise it will resche

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Pavel Březina
On 04/29/2013 07:52 PM, Simo Sorce wrote: On Mon, 2013-04-29 at 11:54 +0200, Pavel Březina wrote: Ah, yes. If the request returns ERR_STOP_PERIODIC_TASK, the task will be completely destroyed, otherwise it will reschedule: when EOK, it will fire the request in last-execution-time + period, othe

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Simo Sorce
On Mon, 2013-04-29 at 11:54 +0200, Pavel Březina wrote: > > Ah, yes. If the request returns ERR_STOP_PERIODIC_TASK, the task will > be > completely destroyed, otherwise it will reschedule: when EOK, it will > fire the request in last-execution-time + period, otherwise now + > period. > Wouldn't

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Pavel Březina
On 04/29/2013 11:35 AM, Jakub Hrozek wrote: On Mon, Apr 29, 2013 at 11:07:09AM +0200, Pavel Březina wrote: On 04/29/2013 10:00 AM, Jakub Hrozek wrote: On Thu, Apr 25, 2013 at 11:18:28AM +0200, Pavel Březina wrote: I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: [RFE] Add a

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Jakub Hrozek
On Mon, Apr 29, 2013 at 11:07:09AM +0200, Pavel Březina wrote: > On 04/29/2013 10:00 AM, Jakub Hrozek wrote: > >On Thu, Apr 25, 2013 at 11:18:28AM +0200, Pavel Březina wrote: > >>I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: > >>[RFE] Add a task to the SSSD to periodically re

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Pavel Březina
On 04/29/2013 10:00 AM, Jakub Hrozek wrote: On Thu, Apr 25, 2013 at 11:18:28AM +0200, Pavel Březina wrote: I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: [RFE] Add a task to the SSSD to periodically refresh cached entries I have recently created a ticket (#1891) to unite A

Re: [SSSD] Design Discussion: Periodic task API

2013-04-29 Thread Jakub Hrozek
On Thu, Apr 25, 2013 at 11:18:28AM +0200, Pavel Březina wrote: > I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: > [RFE] Add a task to the SSSD to periodically refresh cached entries > > I have recently created a ticket (#1891) to unite API for managing > periodic tasks. We al

[SSSD] Design Discussion: Periodic task API

2013-04-25 Thread Pavel Březina
I've been assigned ticket https://fedorahosted.org/sssd/ticket/1713: [RFE] Add a task to the SSSD to periodically refresh cached entries I have recently created a ticket (#1891) to unite API for managing periodic tasks. We already quite a periodic task (enumeration, sudo, dyndns, #1713) when ea