A novel general framework for automatic and cost-effective handling of recoverable temporal violations in scientific workflow sy