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(core): emit reconnect on non-channel error in dataset copy job listener #3167

Merged
merged 3 commits into from
Mar 28, 2022

Conversation

j33ty
Copy link
Contributor

@j33ty j33ty commented Feb 25, 2022

Description

  1. Dataset copy job listener hits network related timeouts for long running jobs. Today, CLI prints There was an error copying the dataset even when copying is in progress. This PR adds a reconnection logic non-channel error.
  2. It seems event type for channel error is channel_error and not channelError, which caused CLI to skip the actual error from console.

@vercel
Copy link

vercel bot commented Feb 25, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

perf-studio – ./

🔍 Inspect: https://vercel.com/sanity-io/perf-studio/EP4aE5d2692WHhYkNC9HhNWTTFPH
✅ Preview: https://perf-studio-git-copy-dataset-reconnect-listener.sanity.build

test-studio – ./

🔍 Inspect: https://vercel.com/sanity-io/test-studio/4SvWgvTBwTzbDHaojY8EGECepYSk
✅ Preview: https://test-studio-git-copy-dataset-reconnect-listener.sanity.build

studio-workshop – ./dev/workshop

🔍 Inspect: https://vercel.com/sanity-io/studio-workshop/FqqRKoqST8f8uCbc9oK6UA3YrZRE
✅ Preview: https://studio-workshop-git-copy-dataset-reconnect-listener.sanity.build

@j33ty j33ty marked this pull request as ready for review March 4, 2022 10:39
@j33ty j33ty requested a review from rexxars March 4, 2022 10:39
@rexxars rexxars changed the title bug(dataset copy): Emit reconnect on non-channel error in job listener fix(core): emit reconnect on non-channel error in dataset copy job listener Mar 8, 2022
@rexxars rexxars force-pushed the copy-dataset-reconnect-listener branch from ba77036 to b65eb51 Compare March 14, 2022 17:35
@rexxars rexxars merged commit d891474 into next Mar 28, 2022
@rexxars rexxars deleted the copy-dataset-reconnect-listener branch March 28, 2022 18:27
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