Commit Graph

14 Commits

Author SHA1 Message Date
Adrian Lyjak 2cc9fae570 add @catch_error handler + Context.retry_info() (#554) 2026-04-23 19:25:50 +00:00
Vasudev Awatramani 2592c8079c feat: Retry Policy (#482) 2026-04-14 14:55:19 -04:00
Adrian Lyjak 021096815c fix docs build crash (#488) 2026-04-07 10:04:37 -04:00
Adrian Lyjak 706b5a9afa Normalize line endings to LF and add .gitattributes (#436)
Add .gitattributes with `* text=auto eol=lf` to enforce Unix-style
line endings and renormalize 11 files that had CRLF endings.
2026-03-18 11:31:07 -04:00
Adrian Lyjak b32ec53ef9 Drop python 3.9 support (#434) 2026-03-17 19:53:33 -04:00
Vasudev Awatramani 9f263149be feat: add ExponentialBackoffRetryPolicy for retry steps (#412) 2026-03-09 15:31:30 -04:00
Adrian Lyjak 62ffc15b28 Docs improvements (#385) 2026-02-27 17:02:02 -05:00
Tuana Çelik 7037a8e151 adding more context to the landing (#401) 2026-02-27 06:58:08 -06:00
Adrian Lyjak 2d5974de0c Add agent builder docs, add resource config docs, re-organize wf docs with more explicit cloud docs section (#305) 2026-01-28 12:45:04 -05:00
Adrian Lyjak f96faa2d03 feat: add dedicated StopEvent subclasses for workflow termination scenarios (#264)
* feat: add dedicated StopEvent subclasses for workflow termination scenarios

Add WorkflowTerminationEvent base class and specific subclasses to provide
detailed information when workflows end abnormally:

- WorkflowTimedOutEvent: Published when workflow exceeds timeout, includes
  timeout duration and list of active steps
- WorkflowCancelledEvent: Published when workflow is cancelled by user
- WorkflowFailedEvent: Published when a step fails permanently, includes
  step name, exception type, and exception message

These events replace the empty StopEvent() instances that were previously
published, allowing consumers to understand why a workflow ended and take
appropriate action.

Closes: issue about providing exception information in StopEvent

* refactor: simplify termination events to inherit directly from StopEvent

* chore: add changeset

* feat: add traceback and fully qualified exception type to WorkflowFailedEvent

* feat: add retry info (attempts, elapsed_seconds) to WorkflowFailedEvent

Also fixes a bug where step_function.py used time.monotonic() instead of
time.time(), causing incompatible timestamps with first_attempt_at.

* fix lints/locks

* docs: add workflow termination events to streaming docs

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-10 13:03:49 -05:00
Adrian Lyjak 6a83541b64 fix docs build (#210)
* fix: fix docs build

* adjust requirements to 3.9 for docs
2025-11-17 14:19:42 -06:00
Logan Markewich 44afffc514 fix workflows api docs build 2025-10-30 09:32:33 -06:00
Adrian Lyjak 18d9bb9669 Refactor context to (eventually) support runtime plugins (#127) 2025-10-28 14:32:41 -04:00
Laurie Voss 8847b41d38 Migrate main docs to Astro (#122)
* Migrate main docs to Astro

* Migrate mkdocs.yml to stripped-down form

* Move up one level

* Static should maybe be elsewhere

* Linting
2025-10-02 13:34:30 -07:00