Skip to content

Commit

Permalink
retry pipeline always fail (#3230) (#3231)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohanhuang authored Mar 9, 2020
1 parent 89f2d0e commit 6dfce41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/core/retry/retry.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def random_failure_op(exit_codes):
name='random_failure',
image='python:alpine3.6',
command=['python', '-c'],
arguments=['import random; import sys; exit_code = random.choice(sys.argv[1].split(",")); print(exit_code); sys.exit(exit_code)', exit_codes]
arguments=['import random; import sys; exit_code = int(random.choice(sys.argv[1].split(","))); print(exit_code); sys.exit(exit_code)', exit_codes]
)


Expand Down

0 comments on commit 6dfce41

Please sign in to comment.