Settings

Theme

Time-Travel Debugging Production Code

temporal.io

9 points by lorendsr 2 years ago · 4 comments

Reader

djmagee 2 years ago

I really appreciate having the full context for "time-travel" debugging. Some of the details definitely go into the TIL category.

underrun 2 years ago

from the article: "Being able to debug any past production code is a huge step up..."

this is pretty epic. but it also means you need to keep track of what version of your code ran every past workflow because you need to run it the exact same way when you replay it, right? Is there an easy way to track in workflow metadata or something which version of a worker (commit sha or something) ran a workflow?

also i love the beginning section about history. It would be awesome if every article I read about some new technology started with a reference to how whatever-it-is really grew out of PARC or bell labs or some research paper written pre-1980.

  • lorendsrOP 2 years ago

    Thanks!

    You do need to run it on the same code version. There are different ways deploy code changes. If you use one of our in-built versioning systems, the version is recorded in the workflow history (and you can either keep track of version-sha mapping or use a sha as the version). Otherwise, you can add code that adds the current code version as workflow metadata.

lorendsrOP 2 years ago

Author here, curious if there are any major TTD debuggers I missed? Also let me know if anything in the post didn't make sense, and I'll edit to clarify!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection