lilmuckers / magento-lilmuckers_queue

A generic multi-adapter queuing system for magento.
MIT License
58 stars 21 forks source link

Allow running queue.php from any working dir #16

Closed toddbc closed 8 years ago

toddbc commented 8 years ago

This prevents scripts executing the queue from having to cd into shell/ before executing the script. Just a little peeve of mine, having to add cd && everywhere.

Note that cli populates SCRIPT_FILENAME with argv[0]. This works fine on Windows, Mac, and Linux. It specifically supports a symlinked setup where shell/queue.php is a symlink, but works also when copied.

If for some reason someone does e.g. cd shell/ && php ../.modman/magento-lilmuckers_queue/shell/queue.php, it will fall back to the existing behavior and use abstract.php in the current working dir.

philwinkle commented 8 years ago

@lilmuckers bump? I think this is a needed feature!