A crisis in Sunnyvale was nearly averted, 450 city workers were set to go on strike Monday, but a tentative agreement was struck at the 11th hour.