-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
Beside using single php files, this lib need to have sqlite or mysql entegration #238
Comments
Hi @kaerer , I see your point about storing rules. I've used a yaml file to storage the system rules and from the database I got info about when something must run. Hope that makes sense for you. cheers |
Hello guys, |
I'd like to second this. I want to be able to set rules programmatically. I'd also like to be able to show the last time a task was run (I can do that by checking the log file) as well programmatically forcing a job to run. I suppose I could circumvent this all using "when" ? @fluchi I'd be interested in seeing how you've done this. |
Hi @judodan , on my case, I have a set of rules on a database that tells me "when" to run a command, something like "run foobar after noon". Based on these set of rules, I check what should be running and inject commands on Basically, it is main schedule triggers every tasks and Tasks checking is something should run or not. Hope that helps. |
I believe this is redundant, because this is completely possible at the moment, just as @fluchi pointed out the solution. As for logging when something ran, you just need to write your own logger, which is also possible |
Hi guys, I want to use this library to generate multiple commands, but these commands will depend on a query to the DB. Do you know how I can inject symfony doctrine from a task file? I am trying to do something like this, but instead of an http client do it with the query directly: |
Hello @oularrea |
I am searching these kind of libs to implement into a symfony project.
I like the most this lib comparing to others, it is simple and easy to use but when i define the rule, it should save into a list (like sqlite, mysql or even into a single file) so it will be more controllable by programmatically. Generating task files dynamically may create issues and also not convenient for large projects.
The text was updated successfully, but these errors were encountered: