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

[5.x] Add the scheduler system #282

Open
papac opened this issue Dec 1, 2023 · 0 comments
Open

[5.x] Add the scheduler system #282

papac opened this issue Dec 1, 2023 · 0 comments
Assignees

Comments

@papac
Copy link
Member

papac commented Dec 1, 2023

The scheduler should work like the following example:

$console->scheduler(function ($scheduler) {
    $scheduler->command("hello")->everyDay();
    $scheduler->php("hello")->everyDay();
});

You can use the externel package for implementing the scheduer. The command method must console the custom bowphp console command.

$console->addCommand('hello', function (Argument $argument) {
    echo Color::green("hello, bow task runner.");
});
@papac papac added this to v5 Dec 1, 2023
@papac papac self-assigned this Dec 1, 2023
@papac papac converted this from a draft issue Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔖 Ready
Development

No branches or pull requests

1 participant