Skip to content

Conversation

@lohanidamodar
Copy link
Contributor

No description provided.

Base automatically changed from dev to main October 10, 2022 08:56
*/
public function stop(): self
{
try {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have the same try catch block for all start/shutdown/init/stop methods?

* Waiting for next Job.
*/
$nextJob = $this->adapter->connection->rightPopArray("{$this->adapter->namespace}.queue.{$this->adapter->queue}", 5);
$nextMessage = $this->adapter->connection->rightPopArray("{$this->adapter->namespace}.queue.{$this->adapter->queue}", 5);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line seems a bit problematic, is this coupled with Swoole? who is providing rightPopArray?
What is the number 5?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TorstenDittmann I've not idea about this :(

@eldadfux eldadfux merged commit 4927cd7 into main Oct 19, 2022
@lohanidamodar lohanidamodar deleted the fix-random-fixes branch October 31, 2022 04:49
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

Successfully merging this pull request may close these issues.

4 participants