Open calebbraun opened 5 years ago
Let's make the component status indicator variable more helpful, so instead of 0 (not yet run), 1 (complete), and 2 (error) we could do something like add constants to constants.py, e.g.
class STATUS(): PENDING = 0 COMPLETE = 1 ERROR = 2
Then something like:
from cassandra.constants import STATUS ... if component.status == STATUS.COMPLETE: # do something
Let's make the component status indicator variable more helpful, so instead of 0 (not yet run), 1 (complete), and 2 (error) we could do something like add constants to constants.py, e.g.
Then something like: