TanStackT
TanStackโ€ข14mo agoโ€ข
38 replies
good-rose

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
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.
Nitro tasks allow on-off operations in runtime.
Tasks - Nitro
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
Was this page helpful?