Expand my Community achievements bar.

SOLVED

Sling Background Servlet node limit to 99

Avatar

Level 1

My project has a servlet that runs in background (sling:bg = true as a parameter) the problem I'm facing is that the answer is limited as 3.43MB which creates 99 nodes on the the jobs node (/tmp/bg/jobs/b7e81f79-07d8-47d8-8b54-d87edf46d9a4/2021/03/18/19/03/5/stream/), someone know how can I raise the amount that can be saved by the servlet?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @thiagorabelo-conexio 

I am not sure what the use case here that you are using the background job with Sling servlet. See if the below link helps:
https://www.joshdurbin.net/posts/2015-05-sling-background-servlets/

 

Thanks!

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @thiagorabelo-conexio 

I am not sure what the use case here that you are using the background job with Sling servlet. See if the below link helps:
https://www.joshdurbin.net/posts/2015-05-sling-background-servlets/

 

Thanks!

Avatar

Employee Advisor

The Sling Background jobs have been deprecated quite some time ago and also removed from AEM (since at least AEM 6.4). I would clearly try to rewrite the code, e.g. to use a Sling Job to execute the job instead.