Cavalcade-Runner
Cavalcade-Runner copied to clipboard
Match pipes to workers
Rather than relying on stream_select() giving us the array back as associative, match which worker it is manually.
Fixes humanmade/Cavalcade#6.
@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
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.
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
I think the fatal might be related to https://github.com/humanmade/Cavalcade-Runner/pull/30