2015-02-26 7:38 GMT+01:00 Jephte Clain <[email protected]>:
> hello,
>
> I'd like to force the order of the sync tasks, e.g synchronising groups
> AFTER synchronising users.
>
> in my lsc.xml, the group task is after the user task.
>
> but, with lsc -s all, the two tasks seems to run in parallel. I thought it
> was because of the number of threads.
>
> so I tried with lsc -s all -t 1
> but now, I can see the groups task is run BEFORE the users task.
>
> so I tried with lsc -s users,groups
> it's the same: the groups task is run BEFORE the users task.
>
> so I tried with lsc -s users,groups -t 1
> still no luck :-(
>
> *** So, how can I order the tasks?
>
> Usually, I run lsc as an asynchronous task. btw, the service is restarted
> every morning.
> *** is it possible with this method to order the tasks?
>
> When I start the asynchronous service, it would:
> - search for the users, synchronize them, then notify the groups task, then
> wait for new modifications on user accounts
> - wait for a notify from the users task, search for the groups, synchronize
> then, then wait for new modifications on groups
> - from now on, each modification is processed normally in each thread.
>
> Is this possible at all?
>

The task order is the one of lsc.xml task declaration.

You can force a task order with for example: lsc -s user && lsc -s group


Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to