#community-help

Asynchronous Nature of the takeSnapshot API

TLDR Ignacio wanted to know if the takeSnapshot API runs asynchronously. Jason clarified that it runs synchronously, and 'success' means the snapshot is saved to disk.

Powered by Struct AI

1

4
16mo
Solved
Join the chat
Jul 02, 2022 (16 months ago)
Ignacio
Photo of md5-f7965ddb4eec1a7d3abd4f89eb705965
Ignacio
05:18 PM
When I call the takeSnapshot api... Does it run async? The snapshot dump on the directory? How do I know when a snapshot is done?
06:19
Ignacio
06:19 PM
working on a small backup script but not sure if the snapshot is done when the API returns with success to snapshot. For reference: https://github.com/nmorenor/server_backup/blob/master/typesensebackup/backup.go
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:55 PM
The snapshot API is synchronous. When it returns success: true, the snapshot has been written to disk
Ignacio
Photo of md5-f7965ddb4eec1a7d3abd4f89eb705965
Ignacio
07:09 PM
cool, thanks! 😎

1