I have a periodic batch job running on my laptop. The code looks like this:
client = Client()
print(client.scheduler_info())
topic='raw_data'
start = datetime.datetime.now()
delta = datetime.timedelta(minutes=2)
while True:
end = start + delta
if end <= datetime.datetime.now():
start = end
print('It\'s time to run the analysis for the 2 mins')
data = get_data_from_parquet('raw_data_fast_par.par', start=start, end=end)
metrics = [Metric1(), Metric2(), Metric3()]
print(data.npartitions)
channels = data.groupby(['col1', 'col2', 'col3'])
for metric in metrics:
features = metric.map_job(channels, start, end)
print(features.count().compute())
In small words, every two minutes I perform some kind of analysis on the data, which I read them from a parquet file, predicating down date filtering. It is a test, so I know it doesn't make much sense now. I get the following warning on the Terminal. Could someone explain why is this happening, if it is important, and how I can avoid it?
distributed.comm.tcp - WARNING - Closing dangling stream in <TCP local=tcp://127.0.0.1:55448 remote=tcp://127.0.0.1:42197>