-
Notifications
You must be signed in to change notification settings - Fork 19
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
RFC: Built in CLI tool to run jobs #22
Comments
Hi Mariano, I think it's a great idea. In fact, we have already been working on a CLI app running on top of disque-php the last few weeks and I'd like to ask you for your opinion and thoughts, even contributions if you have the time and feel like it, as soon as we publish the first version. Right now we are laying down the foundation. Planned features include:
|
@Revisor that sounds pretty cool. Sure I'd love to check that out. Any takes on this implementation, or you think we should focus on yours? |
You did a great job. The Worker even listens to PCNTL signals and the documentation is well written as is usual for disque-php. However I cannot escape the feeling that the code screams "I want to be an independent application". I'll explain:
And if you add just a few more sensible requirements, say repeated jobs ("I want this job to run every day at 5 AM") and language-agnostic workers (which is actually nothing else than calling other console commands), I think the scales have tipped and it really makes sense to build an independent app on top of the library. Which is what we've been doing and what I'd like to invite you to soon. What do you think? Does it make sense to split it into an independent application running on top of disque-php? Oh, a small detail, if you want to continue working on the branch, in the docs you write that the configuration accepts a parameter |
I just wanted to let you know that I'm still working on it. It takes longer than I expected. |
FYI I forgot to tell you I totally agree with the separate library approach for the CLI. So closing this for now :) |
Are you talking about the first version of the cli tool?
|
Exactly.. |
I hope to publish an alpha version soon. |
One of the things I wanted to add for 2.0 is a built-in CLI tool that would make it easy for people to run jobs without them having to build an actual CLI job runner. I've just pushed to the cli_tool branch my proposal for this.
What's your opinion @Revisor?
TO-DO
The text was updated successfully, but these errors were encountered: