Re: ThreadPool with Seaside - how?
Sabine Manaa <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <CA+UbgZaHQfKWfnZPPN2V0x0seanSsBjOqj3wbCph6J_EFsx4kQ@mail.gmail.com> |
I switched to www.imagemagick.org and away from pdfbox. The problem is solved, the howling of my mac disappeared :-) 2017-07-27 9:59 GMT+02:00 jtuchel [via Smalltalk] < [email protected]>: > > Sounds like you need a pdfbox box ;-) > > > > > Am 27.07.2017 um 09:42 schrieb Sabine Manaa <[hidden email]>: > > when the report generation is invoked, the session is alive and I have a long session time. > So, it is unlikely that the session will expire. > If it does expire nevertheless, the user will not notice it (because he is logged out) and I will stop report generation if the session is not available. > > Ramon, I tested your suggestion and with the session passed into the fork with the local variable, it works. > > I was mislead by the method >>queueWorkAndExpireIn:session: > > This works > | theSession | > theSession := self session. > [ theSession dummyMethod ] queueWorkAndExpireIn: 25 seconds session: self session ] > > and this works too: > | theSession | > theSession := self session. > [ theSession dummyMethod2 ] queueWork ]); > > ==>I don't understand for what the session parameter in >>queueWorkAndExpireIn:session: is used. > > But I can also use queueWork. > > This/the smalltalk side seems to work all fine now with the ThreadPool. Thank you for this! > > I also use an external program to > * merge multiple PDFs into one > * and to generate pngs from pdfs for the preview > (https://pdfbox.apache.org). > > The remaining problem is, that I have many pdfbox calls which create a high load on the machine... > :-) > > > > > > > > > > > > ________________________________ > View this message in context: Re: ThreadPool with Seaside - how? > Sent from the Seaside General mailing list archive at Nabble.com. > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > _______________________________________________ > seaside mailing list > [hidden email] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside > > > ________________________________ > If you reply to this email, your message will be added to the discussion below: > http://forum.world.st/ThreadPool-with-Seaside-how-tp4956812p4957128.html > To start a new topic under Seaside General, email [email protected] > To unsubscribe from Seaside, click here. > NAML -- View this message in context: http://forum.world.st/ThreadPool-with-Seaside-how-tp4956812p4957192.html Sent from the Seaside General mailing list archive at Nabble.com. _______________________________________________ seaside mailing list [email protected] http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside