Sling Background Servlet node limit to 99

Avatar

Avatar

thiagorabelo-conexio

Avatar

thiagorabelo-conexio

thiagorabelo-conexio

18-03-2021

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

asutosh_j3

Avatar

asutosh_j3

asutosh_j3

18-03-2021

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!

Answers (1)

Answers (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.0K

Correct Reply

1.1K

Avatar

Jörg_Hoh

Employee

Total Posts

3.1K

Likes

1.0K

Correct Reply

1.1K
Jörg_Hoh
Employee

19-03-2021

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.