On 09/17/2010 10:47 AM, Jason L Connor wrote:
Hi All,

I've put repo sync progress into the the pulp-admin client. I've also
added a GET handler on the uri: /pulp/api/repositories/<id>/sync/, that
returns a list of the recent sync operations including an on-going one,
if applicable.

So here's what I'm thinking. Currently the repo sync command waits for
the repo sync to complete, while (now) displaying progress information.
I want to also allow the command to start a sync and exit, and a second
command to check on the status of the sync.

So I'm looking for suggestions for the following:

* What should the second command be called?
   (I'm leaning toward: syncstatus)

* What should the default behavior of repo sync be?
   (I'm leaning toward: start the sync and exit)

Any suggestions would be greatly appreciated.

Assume we will only allow one sync per repo at a time; so what happens if I initiate a POST on /pulp/api/repositories/<id>/sync/ for the same repo before the ongoing sync has finished?

I do like the idea of an immediate return (default behavior) and a syncstatus for progress info. Assume you can also cancel ongoing sync?

-Todd



_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to