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

More advanced scheduler #130

Open
DawidJur opened this issue May 28, 2023 · 0 comments
Open

More advanced scheduler #130

DawidJur opened this issue May 28, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@DawidJur
Copy link

Currently scheduler https://spiral.dev/docs/advanced-scheduler/3.7/en can be explained as "cron-builder". What I mean by that is it's mainly used to be converted to crontab config. It is pretty limiting, since cron is almost 50 years of piece of technology and doesn't allow to create tasks starting more frequently than every minute - I had use cases where I wanted to start my command every second.

We have schedule:work command, which is simulating cron behavior. I think we could rewrite this module:

  1. Leave/modify current version to be "cron builder" since current version is basically that.
  2. Create new version that is not limited by cron, allow for more advanced configuration and integrations with Roadrunner/Supervizord if that's needed.

The schedule php process could be started by RR with application warmup when any schedule is active. Features like starting command every second should be a thing.

@butschster butschster self-assigned this Nov 15, 2023
@butschster butschster added the enhancement New feature or request label Nov 15, 2023
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