Generator/UniqueJobIdentifierGenerator.php
public function generateUniqueKey($name, $params, $unique, $method)
    {
        $unique = !$unique && $this->generateUniqueKey
            ? md5($name . $params)
            : $unique;

        if (strlen($name . $unique) > 114) {

            throw new WorkerNameTooLongException;
        }

        return $unique;
    }
public function generateUniqueKey($name, $params, $unique, $method)
    {
        $unique = !$unique && $this->generateUniqueKey
            ? md5($name . $params)
            : $unique;

        if (strlen($name . $unique) > 114) {

            throw new WorkerNameTooLongException;
        }

        return $unique;
    }
public function generateUniqueKey ( $ name , $ params , $ unique , $ method ) { $ unique = ! $ unique && $ this -> generateUniqueKey ? md5 ( $ name . $ params ) : $ unique ; if ( strlen ( $ name . $ unique ) > 114 ) { throw new WorkerNameTooLongException ; } return $ unique ; }
Generate unique key if generateUniqueKey is enabled

Even some parameters are not used, are passed to allow user overwrite
method

Also, if name and unique value exceeds 114 bytes, an exception is thrown

@param string $name   A GermanBundle registered function to be executed
@param string $params Parameters to send to task as string
@param string $unique unique ID used to identify a particular task
@param string $method Method to perform

@return string Generated Unique Key

@throws WorkerNameTooLongException If name is too large

@api
Generate unique key if generateUniqueKey is enabled