Your typical fission device needs maintainence and would no longer fire if left unattended for years. Tritium gas leaks out etc. The actual shelf life of an A bomb is highly variable. I am only guessing but 5-7 years seems about right.