Sync between async algorithms and queued tasks