mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 04:08:31 +08:00
fix error (#11206)
This commit is contained in:
parent
d73ad2e7d5
commit
bfff3a7c5d
@ -218,7 +218,8 @@ public class TaskExecutionContext implements Serializable {
|
||||
private ExecutionStatus currentExecutionStatus;
|
||||
|
||||
/**
|
||||
* Task Logger name should be like: Task-{processDefinitionId}-{processInstanceId}-{taskInstanceId}
|
||||
* Task Logger name should be like:
|
||||
* TaskAppId=TASK-{firstSubmitTime}-{processDefineCode}_{processDefineVersion}-{processInstanceId}-{taskInstanceId}
|
||||
*/
|
||||
private String taskLogName;
|
||||
|
||||
|
@ -298,10 +298,10 @@ public class TaskExecuteThread implements Runnable, Delayed {
|
||||
// query the tenant code of the resource according to the name of the resource
|
||||
String fullName = fileDownload.getLeft();
|
||||
String tenantCode = fileDownload.getRight();
|
||||
String resHdfsPath = storageOperate.getResourceFileName(tenantCode, fullName);
|
||||
logger.info("get resource file from hdfs :{}", resHdfsPath);
|
||||
String resPath = storageOperate.getResourceFileName(tenantCode, fullName);
|
||||
logger.info("get resource file from path:{}", resPath);
|
||||
long resourceDownloadStartTime = System.currentTimeMillis();
|
||||
storageOperate.download(tenantCode, resHdfsPath, execLocalPath + File.separator + fullName, false, true);
|
||||
storageOperate.download(tenantCode, resPath, execLocalPath + File.separator + fullName, false, true);
|
||||
WorkerServerMetrics.recordWorkerResourceDownloadTime(System.currentTimeMillis() - resourceDownloadStartTime);
|
||||
WorkerServerMetrics.recordWorkerResourceDownloadSize(
|
||||
Files.size(Paths.get(execLocalPath, fullName)));
|
||||
|
Loading…
Reference in New Issue
Block a user