currently we have in the task poll logic an check that clean up the queue of tasks that should be skipped.
so it requires agents to poll to actually do stuff.
but the agent poll logic should ignore all tasks that are not ready to run and the queue maintenance should happen in an dedicated place.
this pull starts to refactor this by at least move it in it's own function and go routine in the background.
currently we have in the task poll logic an check that clean up the queue of tasks that should be skipped. so it requires agents to poll to actually do stuff.
but the agent poll logic should ignore all tasks that are not ready to run and the queue maintenance should happen in an dedicated place.
this pull starts to refactor this by at least move it in it's own function and go routine in the background.