public static function eventName($event)
    {
        static $constants = null;

        if (is_null($constants)) {
            $class = new \ReflectionClass('Resque\Event');

            $constants = array();
            foreach ($class->getConstants() as $name => $value) {
                $constants[$value] = strtolower($name);
            }
        }

        return isset($constants[$event]) ? $constants[$event] : false;
    }