-
Notifications
You must be signed in to change notification settings - Fork 225
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
Fix rerun_on description for document #1432
base: master
Are you sure you want to change the base?
Conversation
@LeenSun could you please take a look? |
digdag-docs/src/operators/require.md
Outdated
@@ -74,7 +74,7 @@ | |||
|
|||
*rerun_on* control require> really kicks or not if the attempt for the dependent workflow already exists. | |||
* *none* ... Not kick the workflow if the attempt already exists. | |||
* *failed* ... Kick the workflow if the attempt exists and its result is not success. | |||
* *failed* ... Kick the workflow if the attempt not exists or its result was not success. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think "attempt not exists" is proper because this option assumes existence of the attempt as the following description:
rerun_on control require> really kicks or not if the attempt for the dependent workflow already exists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the actual behavior, rerun_on: failed
will generate a new attempt even if the attempt_id at the specific session_time has not been issued. so, how about this description?
*failed* ... Kick the workflow if the attempt may exists and its result is not success.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As comment, I don't think the fix is not proper.
@yoyama Updated PR, Would you please take a look? |
digdag-docs/src/operators/require.md
Outdated
@@ -74,7 +74,7 @@ | |||
|
|||
*rerun_on* control require> really kicks or not if the attempt for the dependent workflow already exists. | |||
* *none* ... Not kick the workflow if the attempt already exists. | |||
* *failed* ... Kick the workflow if the attempt exists and its result is not success. | |||
* *failed* ... Kick the workflow if the attempt may exists and its result is not success. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I can't understand the meaning of using 'may'. in this description.
BTW, your original concern is rerun_on: failed
with the situation when the attempt does not exist.
But rerun_on is only effective if the attempt exists as described.
If it is confused or uncertain, adding description to rerun_on may be better as follows:
*rerun_on* control require> really kicks or not if the attempt for the dependent workflow already exists.
If the attempt does not exist, the dependent workflow is always kicked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the attempt does not exist, the dependent workflow is always kicked.
sounds great!
@yoyama I have updated doc as you suggested. 🙆♂️ |
As result of large change in master branch, there are many conflicts happened. |
037b780
to
1b73277
Compare
@yoyama I have fixed conflicts. please take a look |
c55e9cc
to
bd66ae8
Compare
follow-up for dbc12e4#diff-828f306a0ac2fd6cd570c28c4b2f1cd2
context:
https://treasure-data.slack.com/archives/C094GC4JK/p1594110936030000