Storing running task in queue in the memory