Cavalcade-Runner icon indicating copy to clipboard operation
Cavalcade-Runner copied to clipboard

Match pipes to workers

Open rmccue opened this issue 9 years ago • 4 comments

Rather than relying on stream_select() giving us the array back as associative, match which worker it is manually.

Fixes humanmade/Cavalcade#6.

rmccue avatar Feb 09 '16 10:02 rmccue

@Djelibeybi Can you try this branch and see if it fixes your issue please? :)

Also, are you using HHVM? Seems like this is https://github.com/facebook/hhvm/issues/5120

rmccue avatar Feb 09 '16 10:02 rmccue

I'll give this a whirl later today. I'm not running HHVM, just native PHP 5.4 that ships with CentOS 6. I also tried it with PHP 7.0 build by Remi for CentOS 6 and it had the same problem.

Djelibeybi avatar Feb 09 '16 20:02 Djelibeybi

Still crashes with the following error:

Feb 10 14:37:08 joy-dvmh-web-01 php: PHP Notice:  Undefined offset: 0 in /opt/Cavalcade-Runner/lib/Runner.php on line 226
Feb 10 14:37:08 joy-dvmh-web-01 php: PHP Fatal error:  Call to a member function is_done() on a non-object in /opt/Cavalcade-Runner/lib/Runner.php on line 227

FYI, for version purposes:

# /usr/bin/php -v
PHP 5.3.3 (cli) (built: Jul  9 2015 17:39:00)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Djelibeybi avatar Feb 10 '16 03:02 Djelibeybi

I think the fatal might be related to https://github.com/humanmade/Cavalcade-Runner/pull/30

joehoyle avatar Jun 22 '17 18:06 joehoyle