Skip to content

More informative status indicators #47

@calebbraun

Description

@calebbraun

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    qualityIssues related to code quality, but not affecting correctness or performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions