Some help/ideas needed. I have taskable component without any inputs (only output). This component just gathers information using httpclient (GET). Component created based-on this example.
WIthout inputs, taskable component has InPreSolve as false all the time. InPreSolve component construct tasks. Now component works when I have dummy input which is not even read. Removing input creates component which goes into loop.
Are there anyway to construct tasks without InPreSolve?
if (!q)
{
txt = "waiting to run again";
Task.Run(() => GetWeb()); // you can start more than one here
DA.SetData(0, txt);
}
else
{
q = false; // so next time this runs it queries again
DA.SetData(0, txt);
}