Description
What are you building with SQLPage ?
I'm rebuilding this webapp : https://instances.mobilizon.org/
It is currently in Nodejs but I'm not happy with it. I know it's gonna be better (according to my criteria :)) in sqlpage.
What is your problem ?
This webapp displays some statistics that are collected on a daily basis. I need to write a cronjob.
What are you currently doing ?
I plan to use an external tool (crond + python).
Describe the solution you'd like
I need a way to launch background tasks within sqlpage, that is, tasks that are not par of a request/response cycle.
I need to be able to schedule these task on regular basis, that is, every such period of time or at this time of the day. A way to describe the scheduling could be cron syntax.
In addiction to scheduled job, the solution could allow to launch one off background tasks triggered by a user request but for which the response will not wait for the task to end (like text indexing, image processing, send email, etc). In that case, the response to the request could be a job id.
Describe alternatives you've considered
Use an external crond and curl a private URL of the webapp. This is not convenient as a request/response should be quick (<10s) but a job can be long.