AEM Custom Replication Agent on Publish - queue not found
We have need to flush akamai cache on replication and built a custom agent following an (older) project on Github. GitHub - nateyolles/aem-akamai-replication-agent: How to create custom replication agents in AEM using Akamai as an exam…
Then we created agent under "Agents on author". UI shows up, we can set configuration etc and agent makes calls to Akmai, all good.
However, same configuration when created on Publish instance, under "Agents on publish", does not work. UI shows up, we can set configuration etc. However, there is debug message about "com.day.cq.replication.agent.akamai.queue Queue name com/day/cq/replication/job/akamai not found. And on replicating content from author to publish, no calls are made into Transport Handler.
I checked the Felix Jobs console and typically the queue "com/day/cq/replication/job/akamai" would be created on author instance (when akamai agent is configure) as soon as first replication action is taken. However, no such queue topic is created on Publish no matter how we configure the agent on Publish.
Wondering if anyone know details around what code piece and when would it create queue topics for agents and is there is something else preventing the queue topic being created on publish ? OOTB flush agent configured on Publish has corresponding queue topic created.
Appreciate it.