You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by "alei1206 (via GitHub)" <gi...@apache.org> on 2023/07/23 07:36:21 UTC

[GitHub] [dolphinscheduler] alei1206 opened a new issue, #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute

alei1206 opened a new issue, #14625:
URL: https://github.com/apache/dolphinscheduler/issues/14625

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   In special cases, the conditions task cannot be triggered to execute. As shown in the following figure, when s7 finish before s1, task c2 cannot be triggered, resulting in task s5 or s6 cannot be triggered. The condition for task c2 is or. 
   
   (当任务s7先于任务s1完成且c2的条件定义为or时,s4被跳过导致condition类型任务c2无法被触发,导致后续的s5或者s6任务无法执行。s1至s6均为sleep 20s,s7为sleep 10s)
   
   The workflow is shown below. Tasks s1 to s6 are shell tasks with sleep 20s. Task s7 is a shell type task and is sleep 10s. 
   ![image](https://github.com/apache/dolphinscheduler/assets/97011595/10919855-62fa-4a14-9c3e-31c784224282)
   Condition task c1 is defined as shown in the following figure:
   ![image](https://github.com/apache/dolphinscheduler/assets/97011595/991215a8-6ea9-40d0-9f91-d382e95db40b)
   Condition task c2 is defined as shown in the following figure:
   ![image](https://github.com/apache/dolphinscheduler/assets/97011595/a2a39b25-ec7a-4fed-ba6b-36d2db91006f)
   
   
   ### What you expected to happen
   
   Condition type task c2 is defined as OR, then it should be executed as long as one of the preceding tasks is completed.
   (Condition类型任务c2被定义为OR,则只要前置任务有一个完成就应该被触发。)
   
   ### How to reproduce
   
   Build the workflow shown above. As long as task s7 finishes before task s1, and the c2 task condition is or, the problem can be repeated
   (如上文所示构建工作流,只要任务s7先于任务s1执行结束,且c2任务条件为or,就能复现c2无法被执行问题)
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] SbloodyS commented on issue #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute

Posted by "SbloodyS (via GitHub)" <gi...@apache.org>.
SbloodyS commented on issue #14625:
URL: https://github.com/apache/dolphinscheduler/issues/14625#issuecomment-1649304405

   @alei1206 I've assigned to you. Looking forward to your contribution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14625:
URL: https://github.com/apache/dolphinscheduler/issues/14625#issuecomment-1701940772

   This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14625:
URL: https://github.com/apache/dolphinscheduler/issues/14625#issuecomment-1692577791

   This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] alei1206 commented on issue #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute

Posted by "alei1206 (via GitHub)" <gi...@apache.org>.
alei1206 commented on issue #14625:
URL: https://github.com/apache/dolphinscheduler/issues/14625#issuecomment-1646775134

   If this is an issue that needs to be solved, I want to submit pr to deal with this issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] closed issue #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute
URL: https://github.com/apache/dolphinscheduler/issues/14625


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #14625: [Bug] [dolphinscheduler-master] In special cases, the conditions task cannot be triggered to execute

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #14625:
URL: https://github.com/apache/dolphinscheduler/issues/14625#issuecomment-1646769841

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   In special cases, the conditions task cannot be triggered to execute. As shown in the following figure, when s7 finish before s1, task c2 cannot be triggered, resulting in task s5 or s6 cannot be triggered. The condition for task c2 is or.
   
   (When task s7 is completed before task s1 and the condition of c2 is defined as or, s4 is skipped and condition type task c2 cannot be triggered, resulting in the failure of subsequent s5 or s6 tasks to be executed. s1 to s6 are all sleep 20s, and s7 is sleep 10s)
   
   The workflow is shown below. Tasks s1 to s6 are shell tasks with sleep 20s. Task s7 is a shell type task and is sleep 10s.
   ![image](https://github.com/apache/dolphinscheduler/assets/97011595/10919855-62fa-4a14-9c3e-31c784224282)
   Condition task c1 is defined as shown in the following figure:
   ![image](https://github.com/apache/dolphinscheduler/assets/97011595/991215a8-6ea9-40d0-9f91-d382e95db40b)
   Condition task c2 is defined as shown in the following figure:
   ![image](https://github.com/apache/dolphinscheduler/assets/97011595/a2a39b25-ec7a-4fed-ba6b-36d2db91006f)
   
   
   ### What you expected to happen
   
   Condition type task c2 is defined as OR, then it should be executed as long as one of the preceding tasks is completed.
   (Condition type task c2 is defined as OR, it should be triggered as long as one of the predecessor tasks is completed.)
   
   ### How to reproduce
   
   Build the workflow shown above. As long as task s7 finishes before task s1, and the c2 task condition is or, the problem can be repeated
   (Construct the workflow as shown above, as long as task s7 is executed before task s1, and the task condition of c2 is or, the problem that c2 cannot be executed can be reproduced)
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org