HTCondor Project List Archives



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

Re: [Condor-devel] [condor-fw] RFC: convention for advertising SlotTypeID integer from SLOT_TYPE_N



On Wed, 2012-04-04 at 15:23 -0500, Alan De Smet wrote:
> Erik Erlandson <eje@xxxxxxxxxx> wrote:
> > The proposed convention for dynamic slots is that they will advertise:
> > SlotTypeID = -n  # my parent p-slot is of type n
> 
> Why use negative numbers?

Strictly speaking, positive numbers are reserved for slot types declared
via SLOT_TYPE_N, and also it was a sort of expansion on the current
(internal) convention that the slot type of d-slots is -1.

But, other schemes might be devised.  100+n, or (max_n)+n, etc.
Decoding these might be slightly harder, and/or involve assumptions
about the maximum number of slot types that would ever be declared.