[Bug] [dolphinscheduler-task-sql] sql task error!!!!
Search before asking
- [X] I had searched in the issues and found no similar issues.
What happened

What you expected to happen
try to connect postgresql ,sometimes we got the error,what can i do ,the connection param is right . Version is 3.0.0
How to reproduce
..
Anything else
No response
Version
3.0.x
Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
- In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
- If you haven't received a reply for a long time, you can join our slack and send your question to channel
#troubleshooting
hi @hkun0120 , may u should check your sql and params.
hi @hkun0120 , may u should check your sql and params.
yes ,after check.SQL is oK. and the null is from connection.not THE EXECUTE SQL.

connection is null ,why this happens
connection is null ,why this happens
this is 3.0.x source code?
connection is null ,why this happens
this is 3.0.x source code?
logger.info is I add later
@ruanwenjun 大神帮忙,看看能不能给点思路
今天不报错了,估计是我们积压的task太多,导致占据了连接数