Closed dekm closed 9 months ago
You cannot start gridnodes until the list has finished syncing. We should add a check to wait for this before the button to start is available.
CGridnodeSync::GetNextAsset - Sync has finished
https://github.com/unigrid-project/daemon/blob/master/daemon/gridnode-sync.cpp#L159
We could add this to one of the rpc calls so it returns it.
GridnodeSync.RequestedGridnodeAssets
#define GRIDNODE_SYNC_INITIAL 0 #define GRIDNODE_SYNC_SPORKS 1 #define GRIDNODE_SYNC_LIST 2 #define GRIDNODE_SYNC_MNW 3 #define GRIDNODE_SYNC_BUDGET 4 #define GRIDNODE_SYNC_BUDGET_PROP 10 #define GRIDNODE_SYNC_BUDGET_FIN 11 #define GRIDNODE_SYNC_FAILED 998 #define GRIDNODE_SYNC_FINISHED 999 #define GRIDNODE_SYNC_TIMEOUT 5 #define GRIDNODE_SYNC_THRESHOLD 2
Then in Janus do a check if == 999
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This issue has been closed due to inactivity.
You cannot start gridnodes until the list has finished syncing. We should add a check to wait for this before the button to start is available.
CGridnodeSync::GetNextAsset - Sync has finished
https://github.com/unigrid-project/daemon/blob/master/daemon/gridnode-sync.cpp#L159
We could add this to one of the rpc calls so it returns it.
GridnodeSync.RequestedGridnodeAssets
Then in Janus do a check if == 999