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

JobObject的一点建议 #38

Open
ahhxyz opened this issue Aug 21, 2019 · 1 comment
Open

JobObject的一点建议 #38

ahhxyz opened this issue Aug 21, 2019 · 1 comment

Comments

@ahhxyz
Copy link

ahhxyz commented Aug 21, 2019

希望能使用如下的方式的push一个job:

$queue->push(new \Kcloze\Jobs\Jobs\MyJob(['method' => 'test1', 'params' => ['kcloze', time()]]));

这样的话,JobObject类就需要进行调整,具体业务的job类比如MyJob类则需要继承JobObject。

@Littlesqx
Copy link

@sunbay 我实现了一个 https://github.com/Littlesqx/aint-queue

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

No branches or pull requests

2 participants