As I understand it, the tour of duty is the length of time before the AI auto-reassigns them. It can get a little messy though. I like to manually flush the assignments once in a long while, when I notice primo warships having trouble getting commanders.