github-actions[bot] commented on issue #8415:
URL: 
https://github.com/apache/dolphinscheduler/issues/8415#issuecomment-1042736449


   ### 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
   
   ### Problem phenomenon:
   Script:
   ```shell
   time=$(date "+%Y-%m-%d %H:%M:%S")
   echo $time
   echo ${date_from}
   ````
   
   Global variable date_from=$[yyyy-MM-dd]
   
![image](https://user-images.githubusercontent.com/30291534/154444456-36b292cc-6212-45dd-b8ba-18c278ff5220.png)
   
   Scheduled execution is executed every 30 seconds.
   
   ### Operation and phenomenon record
   1. Automatic timing execution. plan result: print date_from result is 
2022-02-17
   
![image](https://user-images.githubusercontent.com/30291534/154444667-fec814e5-17a6-4f30-b435-ca66681e0c3b.png)
   
   2. Execute manually and modify the global variable to 2022-02-16. Expected 
result: print date_from result is 2022-02-16
   
![image](https://user-images.githubusercontent.com/30291534/154444700-76fdd123-663c-490e-8dbe-5814d4e79d94.png)
   
   3. Wait for the automatic execution of the scheduled task, the expected 
result: print date_from and the result is 2022-02-17 .
   
![image](https://user-images.githubusercontent.com/30291534/154444732-c83a9648-b82c-4a96-abd4-319285485a52.png)
   
   The result is: The host and the manually suspended task fall on the same 
worker node and are affected.
   
   <b>Conclusion:</b>
   Whether the global variable assignment is not stored in the DB, but is only 
stored in the local memory, and there is data inconsistency in the 
synchronization between multiple worker variables.
   
   ### What you expected to happen
   
   as above
   
   ### How to reproduce
   
   as above
   
   ### 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