-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add Config and Migration plus review changes #13
Conversation
aphraoh
commented
Apr 2, 2024
Q | A |
---|---|
Is bugfix? | ❌ |
New feature? | ✔️ |
Breaks BC? | ✔️ |
Co-authored-by: Dmitriy Derepko <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #13 +/- ##
========================================
Coverage 0.00% 0.00%
- Complexity 22 26 +4
========================================
Files 1 1
Lines 84 95 +11
========================================
- Misses 84 95 +11 ☔ View full report in Codecov by Sentry. |
Build check error if not added to required
Hi @vjik and @xepozz us requested except...
|
@@ -92,7 +97,7 @@ public function push(MessageInterface $message): MessageInterface | |||
|
|||
public function subscribe(callable $handlerCallback): void | |||
{ | |||
$this->runExisting($handlerCallback); | |||
$this->run($handlerCallback, true, 5); // TWK TODO timeout should not be hard coded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you plan to resolve it before merge?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I do it after the merge, I believe the solution should be somewhere in the middleware but need to investigate a bit further so maybe that can be a lession for another day after the merge...
// TWK TODO ??? if (!$this->mutex->acquire(__CLASS__ . $this->channel, $this->mutexTimeout)) { | ||
// TWK TODO ??? throw new \Exception('Has not waited the lock.'); | ||
// TWK TODO ??? } | ||
// TWK TODO what is useMaster in Yii3 return $this->db->useMaster(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/Adapter.php
Outdated
{ | ||
while ($this->loop->canContinue()) { | ||
if ($payload = $this->reserve()) { | ||
if ($handlerCallback(\unserialize($payload['job']))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, we're not using PHP serialization for queue. Is it necessary?
src/Adapter.php
Outdated
{ | ||
while ($this->loop->canContinue()) { | ||
if ($payload = $this->reserve()) { | ||
if ($handlerCallback(\unserialize($payload['job']))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, will use this interface
@aphraoh Do not remove discussions, do not use force-push, just add commits one by one, do not care about the rest. As I wrote before, I don't like Move it to |
Yes. We take care about squashing commits when merging, but we need to see how it progressed while doing review. Also, force-pushing is quite confusing for GitHub UI. |
Start description with capital letter and end with dot. Co-authored-by: Alexander Makarov <[email protected]>
Oh dear, please send me a link to the process I should following if I would like to ammend a pull request in github :-| |
Update var comments to convention Use serialize interface instead of php serialise
Hi @xepozz @samdark @vjik , hopefully we can merge with the following outstanding...
|
Apologies in advance if I have done any squeezed and forced commits, still googling to see exactly what you mean by that... |
@aphraoh latest commits are fine. |
Let's merge it and address comments separately. Good job, @aphraoh. |
Sent from my iPhoneOn 3 Apr 2024, at 17:33, Alexander Makarov ***@***.***> wrote:
Let's merge it and address comments separately. Good job, @aphraoh.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|