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

Fix | Fixed WorkflowEventSubscriber extracting WorkflowJob on non WorkflowJob jobs #94

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

simple-hacker
Copy link

@simple-hacker simple-hacker commented Feb 28, 2024

Fixes #90
Fixes #65

Using @stevebauman suggestion, when subscribing to events in WorkflowSubscriber, if the incoming event is not a WorkflowJob job then we return early, and so it will not try to extract the WorkflowJob from the event using the Base64WorkflowSerializer.

I'm not sure what tests I can write sorry. I have tested this in both the minimal repository I made in the issue, and in my production app, and can confirm these are now working again, as well as the Venture test suite is passing again.

Happy to discuss how I can write the test here to confirm it's working properly.

@simple-hacker simple-hacker changed the title Fix | Fixed WorkflowEventSubscriber callbacks running on non WorkflowJob jobs Fix | Fixed WorkflowEventSubscriber extracting WorkflowJob on non WorkflowJob jobs Feb 28, 2024
@ksassnowski
Copy link
Owner

Hey, it'll unfortunately be a few weeks before I'll get around to this as I'm currently on vacation.

My first reaction is that I'm not a super big fan of adding this check to the WorkflowEventSubscriber but I'll have to think on this a bit more.

@simple-hacker simple-hacker force-pushed the fix/WorkflowEventSubscriber branch 2 times, most recently from b7e6f20 to 2f39f2c Compare February 29, 2024 16:34
@simple-hacker
Copy link
Author

Hey, it'll unfortunately be a few weeks before I'll get around to this as I'm currently on vacation.

My first reaction is that I'm not a super big fan of adding this check to the WorkflowEventSubscriber but I'll have to think on this a bit more.

Understood. It's working for me and our application at the moment so we're going to continue to use our fork, but will keep an eye out for this. Thanks for the package anyway, it's amazing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants