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 for job cancellation issue #1127 #1420

Merged
merged 2 commits into from
Feb 10, 2022
Merged

Fix for job cancellation issue #1127 #1420

merged 2 commits into from
Feb 10, 2022

Conversation

carathorys
Copy link
Contributor

@carathorys carathorys commented Feb 10, 2022

I think this was the root cause why sometimes I were not able to cancel some jobs.

I've created an example job which was running in setInterval() (not included here). If I subscribe to the job's updates, sometimes it doesn't gave me back the job state after I cancel it.
I digged in the source, and find this where I were able to fix the issue for myself. As I've seen that someone else also opened an issue for this, I made the PR.

If you need anything else, please let me know!

@carathorys carathorys changed the title Fix for #1127 Fix for job cancellation issue #1127 Feb 10, 2022
@michaelbromley michaelbromley merged commit 2862dda into vendure-ecommerce:master Feb 10, 2022
@michaelbromley
Copy link
Member

Thank you! I'm not totally sure whether this is exactly the same issue as #1127, since this is specific to subscribing to jobs. But a good improvement nonetheless!

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