How to use the funcx.executor.parsl.dataflow.states.States function in funcx

To help you get started, we’ve selected a few funcx examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github funcx-faas / funcX / funcx / executor / parsl / dataflow / states.py View on Github external
failed = 4
    dep_fail = 5
    retry = 6
    launched = 7


# states from which we will never move to another state
FINAL_STATES = [States.done, States.failed, States.dep_fail]

# states which are final and which indicate a failure. This must
# be a subset of FINAL_STATES
FINAL_FAILURE_STATES = [States.failed, States.dep_fail]

if __name__ == "__main__":
    print(States.pending)
    print(States.done)
    print(3 == States.done)
github funcx-faas / funcX / funcx / executor / parsl / dataflow / states.py View on Github external
pending = 0
    runnable = 1
    running = 2
    done = 3
    failed = 4
    dep_fail = 5
    retry = 6
    launched = 7


# states from which we will never move to another state
FINAL_STATES = [States.done, States.failed, States.dep_fail]

# states which are final and which indicate a failure. This must
# be a subset of FINAL_STATES
FINAL_FAILURE_STATES = [States.failed, States.dep_fail]

if __name__ == "__main__":
    print(States.pending)
    print(States.done)
    print(3 == States.done)
github funcx-faas / funcX / funcx / executor / parsl / dataflow / states.py View on Github external
done = 3
    failed = 4
    dep_fail = 5
    retry = 6
    launched = 7


# states from which we will never move to another state
FINAL_STATES = [States.done, States.failed, States.dep_fail]

# states which are final and which indicate a failure. This must
# be a subset of FINAL_STATES
FINAL_FAILURE_STATES = [States.failed, States.dep_fail]

if __name__ == "__main__":
    print(States.pending)
    print(States.done)
    print(3 == States.done)