apache / dolphinscheduler

Apache DolphinScheduler is the modern data orchestration platform. Agile to create high performance workflow with low-code
https://dolphinscheduler.apache.org/
Apache License 2.0
12.73k stars 4.58k forks source link

[Bug] [dolphinscheduler-api] Subprocess The associated process is offline. Run the subprocess, and the process will run #16500

Closed lyyprean closed 1 month ago

lyyprean commented 1 month ago

Search before asking

What happened

Subprocess The associated process is offline. Run the subprocess, and the process will run

What you expected to happen

If the process associated with a subprocess is offline and the subprocess is run, the process will not run

How to reproduce

After the subprocess goes online, the associated process changes from online to offline.

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

Code of Conduct

SbloodyS commented 1 month ago

cc @ruanwenjun

BrijeshPatra commented 1 month ago

Summary: The issue with the subprocess showing as offline has been addressed. The bug report #16500 indicated that the subprocess status was not properly checked, causing the error.

Solution:

Added a check for the process status to determine if it is OFFLINE. Updated the error handling to ensure the process lineage is correctly managed when a subprocess is offline. Verified the fix with relevant test cases. Details:

Implemented the getStatus() method to return the process status. Correctly handled the offline status to prevent the issue. Next Steps:

Test the updated code to ensure that subprocesses are correctly managed. Review any additional logs or cases related to process lineage. bug fix

lyyprean commented 1 month ago

After the sub-process of periodic scheduling goes online, the associated process changes from online to offline, and the associated process is executed periodically

In this case, I think that the process associated with the subprocess cannot be executed. Is this a bug

ruanwenjun commented 1 month ago

I don't think this is a bug, the sub-process task is only used to trigger a workflow, it doesn't care about whether the sub workflow is online or offline.

lyyprean commented 1 month ago

ok