on 07-02-2014 12:02 PM
Hi Guys,
Few days I am searching, whether I can see where are defined the Default Service Tasks, what runs those Tasks and when.
Some task run permanently in few seconds and about two of them I want to find out why. Has somebody an Idea where are scheduled?
Thanks in advance!
Regards
I ended up rewriting query with outer join & new indexes
indexes:
idx1 (p_executiontimemillis,p_expirationtimemillis,p_nodeid,p_failed,p_runningonclusternode`),
id2 (p_expirationtimemillis,p_failed,PK)
SELECT {t.pk}
FROM {Task AS t LEFT JOIN TaskCondition as c on {t.PK}={c.task}}
WHERE
{t.failed} = ?false AND
(
{t.expirationTimeMillis} < ?now OR
(
{t.executionTimeMillis} <= ?now AND
({t.nodeId} = ?nodeId OR {nodeId} IS NULL ) AND
{t.runningOnClusterNode} = ?noNode AND
({c.PK} IS NULL OR {c.fulfilled} =?true)
)
)
ORDER BY {executionTimeMillis} ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you. How I understand, the Task Engine runs statements, that check Tasks and Taskcondition tables in every 10 seconds for a new task records. So, we are not able to manage the execution time or to optimize the statements. Is it possible those two statements to worsen the database performance?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I am sorry. I will try to explain better my issue.
Two statements are running in every 10 seconds and select from tasks and taskconditions database tables(Please see the attached file link text). They are consuming a bit more time and the performance gets worse. Is it possible to be both somehow optimised.
Hi, Please find below the wiki documentation url from which you can understand tasks, their triggers and scheduling.
https://wiki.hybris.com/display/release5/task+-+Technical+Guide#task-TechnicalGuide-Scheduling
This could be handy to understand about tasks
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.