We have a dedicated publishing instance and would like to use it when we run the Unicorn auto-publish.
Currently when running the unicorn sync the publish always uses the CM server, even though we have the DP configured to handle publishing. I believe this is down to how Unicorn auto-publishes. The TriggerAutoPublishSyncedItems pipeline calls ManualPublishQueueHandler and it looks like this is using the Publisher object. Which does not use the Job Manager.:
publisher.PublishWithResult();
This is the class in question:
Therefore to get this to use the DP instance I assume I'll need to either:
a) Use one of the publishing options that use the Job Manager to process publishing (e.g PublishManager - PublishManager.PublishSmart()
) which should therefore use the DP server.
b) Make unicorn available on the DP instance and remotely call the unicorn sync
Am I correct?
If a) and b) are both viable I think I'd prefer to go with a) so we don't have to have include Unicorn and the serialized files on the DP instance. Would I need to write a pipeline that is similar to the TriggerAutoPublishSyncedItems
one but swap out the ManualPublishQueueHandler
for one which uses PublishManager?
We are using Unicorn 4.0.8.