Add condition in setIdForFloatingTasksWhenOnline() for optimisation.