[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] Grinder 0.91




----- Original Message -----
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 03/29/2011 01:01 PM, John Matthews wrote:
> > If you are running from git, please upgrade to grinder 0.91.
> >
> > Grinder 0.91 allows the ability to limit the bandwidth used per
> > thread.
> >
> > _______________________________________________
> > Pulp-list mailing list
> > Pulp-list redhat com
> > https://www.redhat.com/mailman/listinfo/pulp-list
> 
> 
> + limit = repo_params.get('limit', None)
> + if limit:
> + try:
> + limit = int(limit)
> + except:
> + return self.bad_request('Unable to convert "limit" with
> value [%s] to an int' % (limit))
> 
> Good call on parsing this and returning the proper REST response.
> Might
> also want to add in checks to make sure it's not negative or 0.
> 

A check for the negative values sounds like it'd make sense, I just need to make sure we can disable this limitation on a per sync basis, hence I wanted to pass in anything that was a integer for now. 
I'll update the check once I know for sure what values we want to support.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]