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 and Cron Jobs #28

Open
aileftech opened this issue Oct 25, 2023 · 4 comments
Open

Scheduling and Cron Jobs #28

aileftech opened this issue Oct 25, 2023 · 4 comments
Labels
feedback wanted Asking for your feedback about possible features

Comments

@aileftech
Copy link
Owner

The feedback wanted issues are ideas for possible features that I would like to have a feedback on before starting to implement. If you are interested in this features, please leave a reaction or a comment so I understand what features to prioritize.

Scheduling and Cron Jobs

Provide tools for scheduling tasks and running cron jobs (SQL scripts).

@aileftech aileftech added the feedback wanted Asking for your feedback about possible features label Oct 25, 2023
@aileftech aileftech changed the title Scheduling and Cron Jobs: Provide tools for scheduling tasks and running cron jobs. Scheduling and Cron Jobs Oct 26, 2023
@a13a
Copy link

a13a commented Nov 1, 2023

I used quartz scheduler for crons, but there is the issue that the application might be clustered, so you have to provide a mechanism to place a DB lock (so that the job is not run by all instances in parallel).

There is not an "official" way to place a DB lock for spring, so different projects will use different implementations.

I think if this feature is not critical, it is better to be omitted, since different projects might want to use snap-admin, but already have an existent mechanism for running cron jobs, that might be different than the one used in snap-admin.

I like the concept of doing one thing very good (exposing a CRUD interface for the entities), so that all kinds of projects can use it without adding additional functionality.

@aileftech
Copy link
Owner Author

Hi, and thanks for this feedback!

Yes, I actually agree with this. It's a bit out of scope for this project and has too many "issues" to be implemented reliably. I wouldn't implement this as of now unless it received massive support.

@a13a
Copy link

a13a commented Nov 2, 2023

Eventually it could be implemented like an "action" button, that would trigger an external interface, so that the cron would be decoupled from the admin, and if somebody already has an implementation they could use their existing implementation.

@maciejwalkowiak
Copy link

If you decide to go implement it, there is a relatively lightweight and most importantly very configurable tool for cluster aware scheduled jobs in spring - https://github.com/lukas-krecan/ShedLock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback wanted Asking for your feedback about possible features
Projects
None yet
Development

No branches or pull requests

3 participants