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

[Feature] Add "--exit" support to "dat pull" command #1089

Closed
joelwreed opened this issue Mar 29, 2019 · 4 comments
Closed

[Feature] Add "--exit" support to "dat pull" command #1089

joelwreed opened this issue Mar 29, 2019 · 4 comments

Comments

@joelwreed
Copy link
Contributor

Add a "--exit" mode to "dat pull" that such that pull could check for like, 5-10 seconds, and if no changes have been made to the repo, the process would exit. This would allow dat to better support scenarios involving cronjobs or other automated periodic update scenarios.

Currently, "--exit" does not effect the behavior of "dat pull" in any noticeable way. Here's a windows example:

image

@joelwreed
Copy link
Contributor Author

@okdistribute
Copy link
Collaborator

Yes, this issue arrises when the dat is already in sync and there are no new updates, so state.download.modified is false

@joelwreed
Copy link
Contributor Author

One other note: "dat-cp" can be a good alternative until this addressed.

@joehand
Copy link
Collaborator

joehand commented Apr 17, 2019

Released in 13.13.0

@joehand joehand closed this as completed Apr 17, 2019
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

No branches or pull requests

3 participants