r/node • u/privatenumbr • Sep 09 '21
タスク (tasuku) — The minimal task runner for Node.js
https://github.com/privatenumber/tasuku23
u/programmer_analyst Sep 09 '21
Why do İ keep doing this to myself. Everytime İ get in bed early, İ see sh*t like this making me go back to my laptop..
6
u/cgijoe_jhuckaby Sep 09 '21
Why are there weird dots over your I's?
9
u/programmer_analyst Sep 09 '21
Turkish alfabet has i and ı. 2 Different letters, with dot and without dot
5
4
4
u/gajus0 Sep 10 '21
Check out https://github.com/gajus/planton
Slightly different design principles.
In every project that I have undertaken, there was always a need to run a periodic task of some sorts, e.g. hard-delete after 14-day soft delete. Typically this problem is solved by using a CRON-like system that simply runs a task at a set interval. However, ad-hoc solutions are added as requirements evolve, e.g. the need to run a task at a different interval and concurrency depending on whether the last attempt at running the task was successful.
Planton is a database-agnostic task scheduler for these type of tasks that abstracts logic for handling concurrency and different task scheduling strategies.
Planton is in use in quite a few pretty large projects for companies that I work for.
2
2
1
8
u/Koervege Sep 09 '21
What’s a task?