Files
hatchet/examples
matt c8d5144ed4 [Python] Feat: Dependency Injection, Improved error handling (#2067)
* feat: first pass at dependency injection

* feat: add DI example + tests

* feat: finish up tests

* feat: docs

* chore: gen

* chore: lint

* chore: changelog + ver

* fix: split up paragraphs

* refactor: improve impl

* chore: gen

* feat: inject input + ctx into deps

* chore: gen

* [Python] Feat: More use of `logger.exception` (#2069)

* feat: add more instances of `logger.exception`

* chore: ver

* chore: changelog

* fix: one more error log

* chore: gen

* chore: gen

* chore: lint

* fix: improve shutdown

* chore: changelog

* unwind: exit handler

* feat: task run error

* feat: improve error serde with more context

* chore: changelog

* fix: changelog

* chore: gen

* fix: rm celpy + lark dep, casing issues

* chore: changelog

* fix: respect log levels over the API

* fix: changelog

* refactor: rename log forwarder

* fix: circular import
2025-08-11 23:10:44 -04:00
..
2025-04-30 14:10:09 -07:00

Hatchet Examples

Contributing

These examples are generated from SDK source where they include, to contribute updates to these docs please make these changes in the sdk source:

  • Typescript: ../sdks/typescript/src/v1/examples
  • Python: ../sdks/python/examples
  • Go: ../pkg/examples

Comment Markup

We use a special comment markup to generate code snips for our docs. Markups support single line comments in typescript/go // or python #.

Blocks
// > Block Title
BLOCK CONTENT
// !!
Highlights
HH-name 1 hello
hello world

Where 1 is the number of lines to highlight and hello are strings to specifically highlight.