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

Wait for unlock on push instead of failing #126

Open
edouard opened this issue Dec 8, 2015 · 5 comments
Labels

Comments

@edouard
Copy link
Member

@edouard edouard commented Dec 8, 2015

The "push" command could say "Locked, retrying…" and itself keep retrying until it succeeds. This could be a flag like --retry.

@eriegz

This comment has been minimized.

Copy link

@eriegz eriegz commented Aug 6, 2019

This feature would be really nice. Also, why do files get locked at all, and remain so sometimes for minutes at a time?

@edouard

This comment has been minimized.

Copy link
Member Author

@edouard edouard commented Aug 7, 2019

Hi @eriegz,

Thanks for your message.

Target files are locked when their master file is being imported. If no locking was in place when the master language file is being imported the imports wouldn’t reliably work. You can read more about this in the blog: https://webtranslateit.com/es/blog/posts/264-Updates-to-syncing-behavior

That being said the files shouldn’t be locked longer than the master file is being imported. If that’s the case, please send us an e-mail at support@webtranslateit.com with your project URL and the name of the files having troubles and we’ll have a look.

@henrik

This comment has been minimized.

Copy link

@henrik henrik commented Aug 8, 2019

@edouard

This comment has been minimized.

Copy link
Member Author

@edouard edouard commented Aug 8, 2019

Hi @henrik I’ll be implementing improvements on the wti client software this month, and a retry/push feature is in our list.

Re: the “always overwrite when pushing” model to me it seems the most logical one. Me, I like the fact that by default when I push I get on the online tool exactly what I pushed but I understand it doesn’t fit everyone’s workflow.

You can use the wti push -m command which will merge, but the problem is that you need to always remember using it because the day you don’t is the day all your translations get overwritten.

I think it would make sense to have a personal configuration file a la git, where you can tune the default settings. In that file you could configure that when you run wti push it would in fact run a wti push -m.

(or maybe better, have the ability to create your own subcommand aliases like for instance wti p which does a wti push -m)

@henrik

This comment has been minimized.

Copy link

@henrik henrik commented Aug 8, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.