Hi.
In my experience tasks are executed in alphabetical order of their names.
So, renaming as AA_Users and AB_Groups you will obtain the order you need.

Regards

Norberto


www.redklee.com.ar
tel [+54] 11 5273 6342
cel [+54 9] 11 5055 9853
linkedin <http://ar.linkedin.com/in/norbertoaltalef/>






On Thu, Feb 26, 2015 at 9:21 AM, Jephte Clain <[email protected]>
wrote:

> Le 26/02/2015 12:59, Clément OUDOT a écrit :
>
>  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.
>>
>
> well, I don't understand why it does the groups first then the users... in
> lsc.xml user sync comes first 8-|
>
>
>> You can force a task order with for example: lsc -s user && lsc -s group
>>
>
> Yes, evidently
>
> But I'd like to use asynchronous mode.
> - Updating the password in AD as soon as it is modified in OpenLDAP is
> nice.
> - Also, because lsc cannot read unicodePwd from AD, running the task
> synchronously rewrite the password again and again. Restarting the service
> every day ensure it only does that once a day :-)
>
> --
> cordialement,
> Jephté Clain
> Direction des Systèmes d'Information
> et des Usages Numériques - 2IG
> Tél. 0262 93 86 31
> Fax. 0262 93 81 06
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
_______________________________________________________________
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