• Boxiang Sun's avatar
    CMFActivity: Use a random value for activity uids · e1549361
    Boxiang Sun authored
    Sequential number generators stored in a fixed-size format eventually run
    out of values. But activity queues only care about what activities are
    currently present: any uid can be reused as soon as it is available.
    So stop using a sequential id generator for activity uids, and instead use
    random values.
    
    Vincent Pelletier:
    - Commit message.
    - Minor formatting changes.
    - Do probability computations, and increase activity uid storage size to
      64bits integers, up from 32. Table schema migration happens on first
      activity node which starts on upgraded code.
    - Apply to SQLJobLib too.
    e1549361
SQLJoblib.py 6.43 KB