move total_seconds to utilities
add in-memory queue, worker and task skeleton