on 07-18-2016 12:05 PM
Hi,
I have created Planned Item synchronization to trigger syncItemJob. The syncItemCronjob triggers SyncItemJob but not synchronizing any items. In the logs it shows as below
Starts synchronization.. Finished synchronization in 6ms. No errors. Starting pending references processing.. Finished pending references processing in 1 ms.
Can you please help if I have to configure anything specific to synchronize all the items. Please suggest how to trigger syncItemJob through a cronjob.
Thanks Srinivas
You shouldn't schedule a SyncItemCronJob
with a Trigger
because it stores state about what is left to synchronise in the CronJob
. It will work fine for the first run but for subsequent runs it will just think that it has already finished doing the work.
Instead you should schedule the job. The SyncItemJob
implements TriggerableJob
which means that when the trigger fires it calls newExecution()
This creates a new SyncItemCronJob
which will then check what needs to be synchronised.
e.g. as impex
INSERT_UPDATE CatalogVersionSyncJob;code[unique=true];sourceVersion(catalog(id),version);targetVersion(catalog(id),version)
;my catalog sync;my_catalog:Staged;my_catalog:Online
INSERT_UPDATE Trigger;job(code)[unique=true];cronExpression[unique=true];active[default=true]
;my catalog sync;0 0 1 ? * *
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrew,
Thanq for your response.
i created a syncuser and assigned to SyncItemjob. I created JobSearchRestrictions on custom Item types and added to SyncItemJob. When I invoke SyncItemjob from a facadelayer instead via hmc the restrictions on custom item types are not executed and only product related restrictions are executed. Can you please suggest what to do to invoke additional restrictions other than Product.
Thanks, Srinivas
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.