How To Detect When Sync Complete From E.g. Nant


brentww

Recommended Posts

I'd like to be able to move folders in nant and block on sync complete (at which point those folders have been distributed to remote machines) before proceeding with the build tasks.  Expected to find block until sync complete in command line options but nope.  Any suggestions?  Windows 2012 server env.

 

Regards,

Brent

 

 

Link to comment
Share on other sites

Brent,

 

You'll need to make API calls to Sync to find that out. See the "/api/v2/folders/activity" call, and check if peer you want to deliver to is online, and updiff / downdiff is zero. It indicates that remote peer is online and has nothing to get from you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.