# Question about getReadVersion and TaskBucket

**URL:** https://forums.foundationdb.org/t/question-about-getreadversion-and-taskbucket/2595
**Category:** Using FoundationDB
**Created:** [March 3, 2021, 4:22am UTC](https://forums.foundationdb.org/t/question-about-getreadversion-and-taskbucket/2595 "2021-03-03T04:22:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ggilley](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@ggilley](https://forums.foundationdb.org/u/ggilley)
#### Post date: [March 3, 2021, 4:22am UTC](https://forums.foundationdb.org/t/question-about-getreadversion-and-taskbucket/2595/1 "2021-03-03T04:22:47Z")

</div>

I’m trying to implement something like TaskBucket that’s in the core of FDB. I _think_ I understand most of it. The part I’m struggling with is the timeout. It’s basically using getReadVersion to create a timer. I can’t figure out, though, the relation between getReadVersion and wall time. If I wanted to give a task 10 seconds to complete, for example, how does that relate to the “timeout” value?

(I’m also trying to figure out how to map the range(getReadVersion()).end in the C++ code to golang. The C++ appends \xFF to get the end of the range, but I can’t find the equivalent in the golang apis. For the moment, I’m doing the equivalent manually, though I suspect that’s trouble :-))

Thanks,

```
 Greg
```

---

<div class="post-metadata">

### Author: ![ggilley](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@ggilley](https://forums.foundationdb.org/u/ggilley)
#### Post date: [March 3, 2021, 6:14pm UTC](https://forums.foundationdb.org/t/question-about-getreadversion-and-taskbucket/2595/2 "2021-03-03T18:14:36Z")

</div>

Ah, curiously the first post I saw this morning was related. It’s apparently ~1,000,000 readVersions per second. [https://forums.foundationdb.org/t/versionstamp-as-absolute-time/2442](https://forums.foundationdb.org/t/versionstamp-as-absolute-time/2442)
