Skip to content

Commit 89d3ad2

Browse files
committed
Fix exception when no data was received between sequential bot job runs
1 parent 982dec9 commit 89d3ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netflowbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def perform_entity_aggr_job(*args, **job_params):
102102

103103
last_used_seq, last_used_ts = _get_last_used_seq(job_id)
104104
max_seq, max_ts = _get_current_max_seq()
105-
if max_seq is None:
105+
if max_seq is None or last_used_ts == max_ts:
106106
log.info(f"No netflow data found for job {job_id}, skipping.")
107107
return
108108

0 commit comments

Comments
 (0)