You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a WithTxn() method which will associate (and store) a *kv.Txn with the *jobs.Job object. That txn will be used in all of the methods which update the job state in the KV store. This is unfortunate on several fronts. Firstly, it's not always clear which methods operate on in-memory state vs on the key-value store because nothing takes a txn. Secondly, if you don't clear the transaction, then later you can run into trouble using a potentially already committed transaction.
Methods which write to the KV-store should take a transaction.
The text was updated successfully, but these errors were encountered:
There is a
WithTxn()
method which will associate (and store) a*kv.Txn
with the*jobs.Job
object. That txn will be used in all of the methods which update the job state in the KV store. This is unfortunate on several fronts. Firstly, it's not always clear which methods operate on in-memory state vs on the key-value store because nothing takes a txn. Secondly, if you don't clear the transaction, then later you can run into trouble using a potentially already committed transaction.Methods which write to the KV-store should take a transaction.
The text was updated successfully, but these errors were encountered: