screenpipe icon indicating copy to clipboard operation
screenpipe copied to clipboard

refactor: replace internal runtime with `node-cron` to manage scheduled jobs

Open wesleymatosdev opened this issue 1 year ago • 2 comments

  • fix: install missing dependency
  • ci: use install dependencies bash script
  • refactor: avoid check for (possibly empty) pipe_id at hoisting stage
  • docs: remove unnecessary comment
  • refactor: use node-cron and drop cron runtime
  • test: adapt test scheduler to use node-cron
  • chore: remove unnecessary lib

wesleymatosdev avatar Oct 23 '24 06:10 wesleymatosdev

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
screenpipe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 23, 2024 6:30am

vercel[bot] avatar Oct 23 '24 06:10 vercel[bot]

My focus here was to keep the same functionality (you can double-check, but all the pipes are still working. Both types and the external API were kept the same).

In terms of the state, we don't need it anymore because we don't need to bother with dates. And if we stop the scheduler, we can re-add the tasks without hurdle, as in the old version.

wesleymatosdev avatar Oct 23 '24 06:10 wesleymatosdev

nice!

louis030195 avatar Oct 23 '24 15:10 louis030195

thanks @louis030195! starting to ramp up on the project, so I'd love to see more bounties for JS/Deno stuff here on the project 😃

I would appreciate a tip on this one :smile:

wesleymatosdev avatar Oct 23 '24 16:10 wesleymatosdev

/tip $50 @ologbonowiwi

sorry for the delay :)

moved to bun actually

what kind of thing would you like to contribute?

atm we're focused on:

  • data quality (audio transcription accuracy, stability across different devices, more reliable, unique and structured screen data)
  • UX - make the app actually useful, make people use it every day, valuable #608 #607
  • lower priority: storage usage, archive/icloud-like options, resource usage, more/useful pipes/use cases/examples

louis030195 avatar Oct 30 '24 16:10 louis030195

@ologbonowiwi: You just got a $50 tip! We'll notify you once it is processed.

algora-pbc[bot] avatar Oct 30 '24 16:10 algora-pbc[bot]

🎉🎈 @ologbonowiwi has been awarded $50! 🎈🎊

algora-pbc[bot] avatar Nov 01 '24 01:11 algora-pbc[bot]