narrowizard commented on issue #8142:
URL: 
https://github.com/apache/incubator-devlake/issues/8142#issuecomment-2426294752

   After reading some code,I organizaed a table to show when we updading the 
progress of sub tasks.
   | Trigger timing | Times | Code |
   |----------|----------|----------|
   | Sub task started | Once a sub task   | 
https://github.com/apache/incubator-devlake/blob/98bc98bc9b62108834cfa10b554d708b64c1e932/backend/core/runner/run_task.go#L308-L314
 |
   | Mannually called by sub task context |  Unknown(decide by plugin 
implement)  | 
https://github.com/apache/incubator-devlake/blob/98bc98bc9b62108834cfa10b554d708b64c1e932/backend/impls/context/default_exec_context.go#L68-L97<br
 
/>https://github.com/apache/incubator-devlake/blob/98bc98bc9b62108834cfa10b554d708b64c1e932/backend/impls/context/default_subtask_context.go#L37-L53
 |
   | Mannually called by task context | Unknown | 
https://github.com/apache/incubator-devlake/blob/98bc98bc9b62108834cfa10b554d708b64c1e932/backend/impls/context/default_task_context.go#L40-L49
 |
   
   Seems that the progress updating calling is not always under controller, so 
we need to descrise db operation automatically.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to