The task queue behaviour is intended for construction units as their default behaviour when no other behaviour applies. It attempts to follow queues of tasks, construction tasks specifically, in order to follow build queues defined by a developer.
It is hoped that those working with Shard implement additional behaviours so that Shard can become more responsive to the current situation. The task queue behaviour might be able to throw in custom tasks that implement functions checking the current resources in the game, but until those tasks are reached the issue remains unresolved.
It might be easy to overload this behaviour with other custom logic, building an entire AI inside it, but this is sub-optimal, use custom behaviours instead.