2012-05-26 21:11:19 -04:00
|
|
|
Currently, git-annex takes a very lazy approch to displaying
|
|
|
|
progress into. It just lets rsync or whatever display the progress
|
|
|
|
for it, in the terminal.
|
|
|
|
|
|
|
|
Something better is needed for the [[webapp]]. There needs to be a
|
|
|
|
way for the web app to know what the current progress is of all transfers.
|
|
|
|
|
2012-08-28 14:04:28 -04:00
|
|
|
This is one of those potentially hidden but time consuming problems.
|
2012-05-26 21:11:19 -04:00
|
|
|
|
2012-08-28 14:04:28 -04:00
|
|
|
## downloads
|
2012-05-26 21:11:19 -04:00
|
|
|
|
2012-08-28 14:04:28 -04:00
|
|
|
* Watch temp file as it's coming in and use its size.
|
|
|
|
This is the only option for some special remotes (ie, non-rsync).
|
|
|
|
Can either poll every .5 seconds or so to check file size, or
|
2012-09-19 14:28:57 -04:00
|
|
|
could use inotify. **done**
|
|
|
|
|
|
|
|
## uploads
|
|
|
|
|
2012-09-20 13:46:07 -04:00
|
|
|
Each individual remote type needs to implement its own support for calling
|
2012-09-21 23:25:06 -04:00
|
|
|
the MeterUpdate callback as the upload progresses.
|
2012-09-20 23:44:46 -04:00
|
|
|
|
2012-09-21 23:25:06 -04:00
|
|
|
* git: **done**
|
2012-09-20 13:50:21 -04:00
|
|
|
* rsync: **done**
|
2012-09-21 14:54:24 -04:00
|
|
|
* directory: **done**
|
2012-09-20 13:46:07 -04:00
|
|
|
* web: Not applicable; does not upload
|
2012-09-21 23:25:06 -04:00
|
|
|
* S3: TODO
|
|
|
|
* bup: TODO
|
2012-09-20 13:46:07 -04:00
|
|
|
* hook: Would require the hook interface to somehow do this, which seems
|
|
|
|
too complicated. So skipping.
|
2012-09-20 17:48:10 -04:00
|
|
|
|
|
|
|
## communication
|
|
|
|
|
|
|
|
It may be worth using a better communication channel than files on disk for
|
|
|
|
the transfer progress. Shared memory could be used, or http posts to the
|
|
|
|
webapp.
|