auguszero opened a new issue #8415:
URL: https://github.com/apache/dolphinscheduler/issues/8415


   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   ### 问题现象:
   脚本: 
   ```shell 
   time=$(date "+%Y-%m-%d %H:%M:%S")
   echo $time
   echo ${date_from}
   ``` 
   
   全局变量 date_from=$[yyyy-MM-dd]
   
![image](https://user-images.githubusercontent.com/30291534/154444456-36b292cc-6212-45dd-b8ba-18c278ff5220.png)
   
   定时执行 为每30秒执行一次。 
   
   ### 操作及现象记录 
   1. 自动定时执行。计划 结果:打印date_from 结果为 2022-02-17 
   
![image](https://user-images.githubusercontent.com/30291534/154444667-fec814e5-17a6-4f30-b435-ca66681e0c3b.png)
   
   2. 手动执行,并修改全局变量为 2022-02-16。 期望结果 : 打印date_from 结果为 2022-02-16 
   
![image](https://user-images.githubusercontent.com/30291534/154444700-76fdd123-663c-490e-8dbe-5814d4e79d94.png)
   
   3. 等待定时任务自动执行,期望结果: 打印date_from 结果为 2022-02-17 。 
   
![image](https://user-images.githubusercontent.com/30291534/154444732-c83a9648-b82c-4a96-abd4-319285485a52.png)
   
   结果为: host与手动吊起任务落在同一个worker的节点,被受影响。  
   
   <b>结论:</b> 
   全局变量赋值是否未落盘至DB中,仅保存在本地的memory中,并且多个worker 变量之间的同步存在数据不一致的情况。  
   
   ### What you expected to happen
   
   如上 
   
   ### How to reproduce
   
   如上
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   2.0.1
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


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