SbloodyS commented on issue #18350: URL: https://github.com/apache/dolphinscheduler/issues/18350#issuecomment-4716301113
> 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 It's ok to use rest api to download file. > 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 too simple, please refer to #17703 -- 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]
