nl_tokens: Get the total number of jobs of type
pl_tokens: function ( qName , type ) { var client = redis . client ( ) ; var key = 'bull:' + qName + ':' + type ; if ( type === 'wait' || type === 'active' ) { return client . llenAsync ( key ) ; } else if ( type === 'delayed' ) { return <mask> . zcardAsync ( key ) ; } else if ( type === 'completed' || type === 'failed' ) { return client . scardAsync ( key ) ; } throw new Error ( 'You must provide a valid job type.' ) ; }