Hi all,
I needed to build a server that would allow the management of
subscriptions for periodic reports but that would also be able to offer
them on requests. So I did a process to run a report once, I built a
subscription db model that stored all the info needed to build and
deliver a report and a controller with the following routes:
* the CRUD for the subscription model,
* run once and deliver a report,
* a wakeup call that would start a recurring ioloop
This works great, but I need to make the wakeup call every time the
server starts, so I'd like the ioloop to start at app->startup but
keeping it in the controller scope.
The wakeup call must include a valid auth token, so I can not include a
useragent to make the call in the startup (or I shouldn't... I could
skip the auth if the route is wakeup, but I wouldn't like to do so).
So, my questions: How would you do it?
Kind regards,
Juan
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.