smartfog / fogflow

FogFlow is a standard-based IoT fog computing framework that supports serverless computing and edge computing with advanced programming models
https://fogflow.readthedocs.io
BSD 3-Clause "New" or "Revised" License
123 stars 45 forks source link

keep the total number of running tasks in sync with each worker #387

Closed showersky closed 2 years ago

showersky commented 2 years ago

the master maintains the number of running tasks for each worker, but sometime those numbers are not correct when some running tasks failed.

We need to introduce a mechanism to keep those numbers up-to-date.

showersky commented 2 years ago

updated also according to the number of tasks reported by each worker via their heartbeat messages