Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More informative status indicators #47

Open
calebbraun opened this issue Dec 4, 2018 · 0 comments
Open

More informative status indicators #47

calebbraun opened this issue Dec 4, 2018 · 0 comments
Labels
quality Issues related to code quality, but not affecting correctness or performance

Comments

@calebbraun
Copy link
Contributor

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
@rplzzz rplzzz added the quality Issues related to code quality, but not affecting correctness or performance label Dec 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
quality Issues related to code quality, but not affecting correctness or performance
Projects
None yet
Development

No branches or pull requests

2 participants