How to use the aerospike.jobStatus function in aerospike

To help you get started, we’ve selected a few aerospike examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aerospike / aerospike-client-nodejs / examples / scan_background.js View on Github external
job.info((error, info) => {
        if (error) {
          console.info('Error checking background scan status:', error)
          clearInterval(timer)
          client.close()
        } else if (info.status === Aerospike.jobStatus.COMPLETED) {
          console.info('Scan completed')
          clearInterval(timer)
          client.close()
        } else {
          console.info('Scan status:', info)
        }
      })
    }, 10)