Expand my Community achievements bar.

SOLVED

AEM 6.1 -Scheduler throwing session timeout error

Avatar

Level 2

Hi ,

We are doing the cleanup activity, where the old nodes(custom) are being deleted from each user profiles. since this is affecting huge number of nodes, we implemented a scheduler to take input as "/home/users/A" and start deleting the nodes which falls under some date criteria.

Scheduler is working for 2 to 3 times (deleting 20000 nodes each time). after that it is throwing session timeout error.

we tried following approaches but no luck.

1. indexing the properties

2. removing session.logout() from the code

2. used session.refresh(1)

Any advise will be helpful.

Thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Level 10
1 Reply

Avatar

Correct answer by
Level 10