You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
classSTATUS():
PENDING=0COMPLETE=1ERROR=2
Then something like:
fromcassandra.constantsimportSTATUS
...
ifcomponent.status==STATUS.COMPLETE:
# do something
The text was updated successfully, but these errors were encountered:
rplzzz
added
the
quality
Issues related to code quality, but not affecting correctness or performance
label
Dec 4, 2018
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:
The text was updated successfully, but these errors were encountered: