Skip to content

Conversation

@natemort
Copy link
Member

What changed?

  • Remove WorkflowEngine caching. It's required for sticky TaskLists, which we haven't implemented yet. We can reintroduce similar logic during that process.
  • Suppress logs on destroyed pending tasks. This is the expected behavior for our event loop.
  • Add utilities to scaffold integration tests
  • Add integration tests for basic workflow functionality
  • Add support for keeping the docker container running or using an alternative docker configuration, making it faster to iterate on integration tests.

Why?

  • Get core workflow execution working

How did you test it?

  • Integration tests

Potential risks

Release notes

Documentation Changes

@natemort natemort changed the title Remove WorkflowEngine Caching and add basic Activity/Workflow integration tests feat: Remove WorkflowEngine Caching and add basic Activity/Workflow integration tests Nov 24, 2025
Comment on lines +128 to +132
# We intentionally destroy pending tasks when shutting down the event loop.
# If our asyncio implementation supports it, disable the logs
if hasattr(task, "_log_destroy_pending"):
setattr(task, "_log_destroy_pending", False)
return task
Copy link
Member

Choose a reason for hiding this comment

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

This actually indicates a real data leak issue. But we can fix it later

Copy link
Member

Choose a reason for hiding this comment

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

Discussed offline. There isn't a good solution to proactively delete the tasks. Cancelling tasks will trigger the workflow coroutine logic and may have unwanted side effects.

These tasks are weak references but will be deleted by GC eventually. So we'll just keep suppressing logging for now since it's expected behavior

@natemort natemort merged commit 890fe83 into cadence-workflow:main Nov 25, 2025
7 of 8 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