Cron / Background jobs / Tasks
In SolidJS which also uses Nitropack under the hood it was possible to setup cron jobs using Nitropack.
See docs here: https://nitro.build/guide/tasks
And specific implementation in SolidJS: https://github.com/solidjs/solid-docs/issues/964
AFAIK SolidJS did nothing to enable this and it just came out of the box by using Vinxi and Nitropack.
I just tried the same with Tanstack Start and while I can add those configurations in
Do you guys know by any chance how to enable that feature somehow?
Thanks
Disclamer
- I know this out of scope for this so no worries if nobody wants to spend time on it; in fact thanks for this amazing library already
- I know ideally one should run tasks in a separate process/thread since node is single threaded; my specific use case is for an app that works in a specific timezone and has traffic downtime during the night and I can run some simple and fast cleanup tasks.
See docs here: https://nitro.build/guide/tasks
And specific implementation in SolidJS: https://github.com/solidjs/solid-docs/issues/964
AFAIK SolidJS did nothing to enable this and it just came out of the box by using Vinxi and Nitropack.
I just tried the same with Tanstack Start and while I can add those configurations in
app.config.ts the tasks seem to be ignored.Do you guys know by any chance how to enable that feature somehow?
Thanks
Disclamer
- I know this out of scope for this so no worries if nobody wants to spend time on it; in fact thanks for this amazing library already
- I know ideally one should run tasks in a separate process/thread since node is single threaded; my specific use case is for an app that works in a specific timezone and has traffic downtime during the night and I can run some simple and fast cleanup tasks.
GitHub
Explain your issue Reference Discord conversation: https://discord.com/channels/722131463138705510/1310190736670457856/1310190736670457856 I was able to make background jobs/tasks work in Solid S...![[Other]: Tasks ยท Issue #964 ยท solidjs/solid-docs](https://images-ext-1.discordapp.net/external/rlRPi2eBmt-OgcveL7dqc5IySJOJfTSeYHzFZlu5Bxo/https/opengraph.githubassets.com/17384244da000bdd99bca70b14c79e43e33843d854bae15f512188e523076741/solidjs/solid-docs/issues/964)
