In memory queue system prioritizing tasks