cancel
Showing results for 
Search instead for 
Did you mean: 

Cron Job manual run ignores nodeGroup

Former Member
0 Kudos

Hi!
In our application if we st cron job manually from the BO, it ignores the already set nodeGroup and instead it starts on the current server node. (If it is triggered by a time based trigger it starts correctly on the set nodeGroup.) Is it on purpose or is it a bug? Hybris version is 5.7.
Thx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

In this case you should use triggers.

When a job is fired by a trigger, a CronJob instance is automatically created, because each execution needs a CronJob instance to provide the configuration.

Assigning a cronjob to a group of nodes will only work if you assign a trigger to your cronjob!

The task engine is what will pick up the node to execute the cronjob based on the nodegroup setting not the cronjob itself.

Programatically executing cronjobs without a trigger would execute on the current node or on a specific node by node id.

For more information please visit the link below: https://wiki.hybris.com/display/release5/cronjob+-+Technical+Guide

Best regards, Błażej Wcisło

Answers (1)

Answers (1)

former_member537989
Contributor
0 Kudos

That's expected result, don't start manually, rely on trigger then it will work according to node/nogegroup