Skip to content

PR Tracking Initial Release#4

Open
donald-pinckney wants to merge 4 commits intomainfrom
dev
Open

PR Tracking Initial Release#4
donald-pinckney wants to merge 4 commits intomainfrom
dev

Conversation

@donald-pinckney
Copy link
Collaborator

Do NOT merge until good for releasing 0.1.0

* Add initial skill for testing, which is simply Steve's skill

* Rename skill to 'temporal-dev' and update version

Updated skill name and version for Temporal Python.
* Use claude to merge Steve's, Max's, and Mason's skills. Did a review pass using claude's skill devlopment skills

* Add missing things from Steve

* trigger tweaks

* Add in common gotchas from Johann

### Synchronous Activities

- Run in the `activity_executor` (thread pool by default)
Copy link
Member

Choose a reason for hiding this comment

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

There is no default

For CPU-bound work or true parallelism:

- Use multiple worker processes
- Or use `ProcessPoolExecutor` for synchronous activities
Copy link
Member

Choose a reason for hiding this comment

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

We should discourage this or at least explain some downsides (e.g. cancellation delivery)


## Local Test Environment

For tests that don't need time-skipping:
Copy link
Member

Choose a reason for hiding this comment

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

Specifically, should say in the previous section that Time-Skipping Test Environment should only be when you must have time-skipping

env = ActivityEnvironment()

# Optionally customize activity info
# env.info = ActivityInfo(...)
Copy link
Member

Choose a reason for hiding this comment

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

We have a newer suggestion which is using dataclasses.replace with the ActivityEnvironment.default info()


@pytest.mark.asyncio
async def test_with_mock():
async with await WorkflowEnvironment.start_time_skipping() as env:
Copy link
Member

Choose a reason for hiding this comment

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

Mentioned before, but we should stop using time skipping unless we really need it, it's a poor test env (can't be reused, limited functionality, etc)

@cretz
Copy link
Member

cretz commented Feb 10, 2026

Note, I did not review TypeScript, only core and Python.

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.

2 participants