tlhhup opened a new pull request #2772:
URL: https://github.com/apache/incubator-dolphinscheduler/pull/2772
## What is the purpose of the pull request
In my understanding, the worker updates the status of the task through the
message after the master has distributed the task, but the new task status in
the master is directly obtained from the database without the use of
TaskInstanceCacheManager. So I optimized the code, If there is any problem,
please correct it.😊
1. after master submit the task to worker and db, cache it.
2. when receive the task state update response from worker, update the cache
in addition to synchronizing to the db.
3. query new state from cache, reduce the pressure on the db.
This change added tests and can be verified as follows:
- *Manually verified the change by testing locally.*
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]