remote_mirror.mark_as_failed('The mirror update took too long to complete.')
end
end
private
defremote_mirrors_to_sync
RemoteMirror.where("last_successful_update_at + #{Gitlab::Database.minute_interval('sync_time')} <= ? OR sync_time IN (?)",DateTime.now,Gitlab::Mirror.sync_times)