replaced atomic store with atomic cmp&swap

3 jobs for feature/healthcheck
in 2 minutes and 23 seconds and was queued for 1 second