eye-gu commented on issue #18350:
URL: 
https://github.com/apache/dolphinscheduler/issues/18350#issuecomment-4716228401

   > Git doesn't support single file or multiple file downloading. The same 
task instance may refer to multiple files in different folders. For git, it 
needs to pull extra contents of multiple projects or folders, which will cause 
waste of resources and performance degradation
   
   Git can download single file through the REST API. Such as GitHub, you can 
check the documentation: 
https://docs.github.com/en/rest/repos/contents?apiVersion=2026-03-10
   
   The design of local cache is roughly as follows:
   1. Configure to open cache+interval time+local cache directory
   2. When creating a GitStorageOperator, determine whether a git clone is 
needed, and then start a scheduled task for git fetch
   3. When the worker calls download and cache enable, it reads from the local 
directory. Otherwise download through the REST API.


-- 
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