Record last commands only once

We first check the history (model->items) if the command is already in.
Only if the command is not in yet, we add it to the history
2 jobs for master in 1 minute and 9 seconds (queued for 2 seconds)