504 gateway timeout during update of conditions