-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[v2] sync command doesn't fail immediately when SSO token expires #4863
Comments
Hi @borrell, thanks for your feedback. Instead of failing immediately, do you think retrying the current file and not attempting all others would be a preferred behavior? |
Retrying the current file would be fine, to a point (see #3 below!) I've got a few more thoughts, after ruminating on it for a day:
|
Good points. Thanks for the feedback |
Perhaps these should be options for the client. In my application, a wrapper script can request a new token and retry the sync. Sadly the sync only returns after attempting the whole sync (even though the token has expired). This means a lot of time is wasted scanning the source files. |
Greetings! It looks like this issue hasn’t been active in longer than one year. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
When executing an S3 sync with an SSO profile, if the SSO token expires during the sync (e.g. expires via timeout), then the sync will continue, trying each file and displaying an error noting that the token has expired.
I would imagine (without entirely thinking through any possible side-effects) that the desired behaviour would be for the sync to fail immediately, rather than continue retrying.
The text was updated successfully, but these errors were encountered: