Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getter for ActivityPrototype::$factory #492

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

Nyholm
Copy link
Contributor

@Nyholm Nyholm commented Aug 24, 2024

What was changed

Adding a getter for ActivityPrototype::$factory

Why?

Whenever I start my workers, I replace all ActivityPrototype with a decorated version of my activities. I do this to add support for EventDispatcher. Ie I dispatch event before and after an activity is executed.

So I need to rebuild the ActivityPrototype.

Checklist

  1. How was this tested:
    Unit tests

  2. Any docs updates needed?
    Nope

Copy link

vercel bot commented Aug 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
php ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 3, 2024 0:12am

Copy link
Collaborator

@roxblnfk roxblnfk left a comment

Choose a reason for hiding this comment

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

Hi @Nyholm 👋
I see no obstacles to merging the PR, however note that you are replacing internal classes. You can intercept calls and run Activities in a legal way through interceptors.

@roxblnfk roxblnfk merged commit 28538c1 into temporalio:master Sep 3, 2024
48 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