on 11-26-2018 10:54 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's expected result, don't start manually, rely on trigger then it will work according to node/nogegroup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.