Skip to content

Conversation

natemort
Copy link
Member

@natemort natemort commented Sep 9, 2025

User code needs to be able to retrieve information about the running activity, and in the future will be able to interact with it (heartbeating). Create the initial structure for providing it.

What changed?

  • Add activity module, with utilities to obtain information about the running activity

Why?

  • Setup to support more advanced features, like heartbeating

How did you test it?

  • Unit tests

Potential risks

Release notes

Documentation Changes

return await self._activity_fn(*params)

async def _to_params(self, payload: Payload) -> list[Any]:
type_hints = get_fn_parameters(self._activity_fn)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: store in self._activity_fn_args_type_hints to avoid unnecessary evaluations.

User code needs to be able to retrieve information about the running activity, and in the future will be able to interact with it (heartbeating). Create the initial structure for providing it.
@natemort natemort merged commit 121c36c into cadence-workflow:main Sep 10, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants