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

Ability to forcefully run a cron job now #2720

Closed
drzraf opened this issue Nov 4, 2019 · 4 comments
Closed

Ability to forcefully run a cron job now #2720

drzraf opened this issue Nov 4, 2019 · 4 comments

Comments

@drzraf
Copy link
Contributor

drzraf commented Nov 4, 2019

Traditional cron is an overlay on top of individually executable scripts.
onSchedulerInitialized attaches a PHP function to a job entry, but we have no way to simply run the PHP function independantly.

Until we get a bootstrap system (./bin/grav exec/eval/eval-script), it'd be handy to have a way to trigger the job manually.
In my case I've a custom json cache system and I wanted to refresh manually when doing a specific update to my code (and test/debug it).
Currently I can only wait for the cron to run it again by itself.

@drzraf drzraf changed the title Forcefully run a cron job Ability to forcefully run a cron job now Nov 4, 2019
@rhukster
Copy link
Member

rhukster commented Nov 7, 2019

Not a bad idea, let me see what I can do.

@rhukster
Copy link
Member

rhukster commented Nov 7, 2019

$ bin/grav scheduler -r test-ls

where test-ls is a Job ID

@rhukster rhukster closed this as completed Nov 7, 2019
@drzraf
Copy link
Contributor Author

drzraf commented Mar 6, 2020

1.6 backport? ;)

@rhukster
Copy link
Member

rhukster commented Mar 6, 2020

1.7 release is on the near horizon...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants