@@ -140,6 +140,7 @@ static final class Execution extends AbstractStepExecutionImpl implements Runnab
140
140
private transient FilePath ws ;
141
141
private transient long recurrencePeriod ;
142
142
private transient volatile ScheduledFuture <?> task , stopTask ;
143
+ private transient boolean printedCannotContactMessage ;
143
144
private Controller controller ;
144
145
private String node ;
145
146
private String remote ;
@@ -184,7 +185,10 @@ static final class Execution extends AbstractStepExecutionImpl implements Runnab
184
185
// RequestAbortedException, ChannelClosedException, EOFException, wrappers thereof; InterruptedException if it just takes too long.
185
186
LOGGER .log (Level .FINE , node + " is evidently offline now" , x );
186
187
ws = null ;
187
- logger ().println ("Cannot contact " + node + ": " + x ); // TODO should we throttle messages of this type; e.g., exponentially slow them down?
188
+ if (!printedCannotContactMessage ) {
189
+ logger ().println ("Cannot contact " + node + ": " + x );
190
+ printedCannotContactMessage = true ;
191
+ }
188
192
return null ;
189
193
}
190
194
if (!directory ) {
@@ -324,7 +328,10 @@ private void check() {
324
328
} catch (Exception x ) {
325
329
LOGGER .log (Level .FINE , "could not check " + workspace , x );
326
330
ws = null ;
327
- logger ().println ("Cannot contact " + node + ": " + x ); // TODO as above
331
+ if (!printedCannotContactMessage ) {
332
+ logger ().println ("Cannot contact " + node + ": " + x );
333
+ printedCannotContactMessage = true ;
334
+ }
328
335
}
329
336
}
330
337
0 commit comments