Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scheduling #12

Open
Owez opened this issue Aug 22, 2022 · 3 comments
Open

Scheduling #12

Owez opened this issue Aug 22, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@Owez
Copy link
Owner

Owez commented Aug 22, 2022

This project needs to have some sort of scheduling integrated.

Options

These options are cross-platform and they need to work on Windows, Mac, and Linux.

@Owez Owez added the enhancement New feature or request label Aug 22, 2022
@Owez Owez self-assigned this Aug 22, 2022
@Owez Owez mentioned this issue Sep 4, 2022
@Owez Owez removed their assignment Jan 6, 2023
This was referenced Jan 12, 2023
@Owez
Copy link
Owner Author

Owez commented Jan 12, 2023

The CLI for this will most likely be yark refresh [archive] --schedule=1d with 1d here being a human date which it runs. 1d = daily, 1w = weekly, etc. I know there's a nice library to parse these dates to make it so people already know how they work.

This is also required for the big possible #83 command, and will be aliased there so it needs to be a repeatable argument.

@swyxio
Copy link

swyxio commented Jan 18, 2023

just wondering - whats the difference between doing this and using cron? i feel like keeping the scheduling job outside of yark would make it more "unix principle-ey" and enable others to use other kinds of schedulers

@Owez
Copy link
Owner Author

Owez commented Jan 18, 2023

just wondering - whats the difference between doing this and using cron? i feel like keeping the scheduling job outside of yark would make it more "unix principle-ey" and enable others to use other kinds of schedulers

This feature would be a simple in-built scheduler so that users can use the application without needing to learn a scheduling tool on their local os (Yark is cross-platform and supports Windows too). If you want to use cron or another scheduler after this issue is implemented, you can still use refresh as the scheduler would just run this command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants