fix(3127): Only run the qss log sync interval once the auth connection is properly up and running#3126
fix(3127): Only run the qss log sync interval once the auth connection is properly up and running#3126islathehut wants to merge 3 commits intodevelopfrom
Conversation
|
The overview of why this works: We were triggering the log pull interval in two places under normal circumstances:
The first trigger is what was causing issues. In this context the "active" status was based solely on whether the connection had been stopped or not. Trying to pull log entries would be impossible at this point as both quiet and qss would reject since the connection wasn't fully established. The second trigger was firing correctly but since the interval already existed we ignored it and continued waiting for the timer to finish before starting a new attempt. The fix here is to track the LFA connection status in more detail so we know which stage of its lifecycle its in and migrate actions like "start pulling logs from qss" on whether we have completed the identity challenge or not and only using the more vague "active" state of the connection (i.e. is the connection actively doing something) for actions such as restarting/replacing stopped connections that don't rely on the LFA lifecycle. Something odd to note here: I originally migrated to using a new event, |
Pull Request Checklist
(Optional) Mobile checklist
Please ensure you completed the following checks if you did any changes to the mobile package: