We are using pipelines in our product. My question is around stopping the pipeline.
We are using the command:
STOP PIPELINE IF RUNNING resources;
This works fine if the pipeline exists. But if the pipeline doesn’t exist (maybe to an error while deploying liquibase or for some other reason), it throws the error:
ERROR 1944 (HY000) at line 1: Pipeline `resources` does not exist
Is there was way so that I can check if pipeline exists and then stop it
i.e. something like IF EXISTS ?
When i run this, I am getting the following error:
Traceback (most recent call last):
File "/Users/ngarg/PycharmProjects/memsqlKafka/startup_try.py", line 3, in <module>
conn = database.connect(host="127.0.0.1", port=3306, user="root")
File "/Users/ngarg/Library/Python/3.9/lib/python/site-packages/memsql/common/database.py", line 19, in connect
return Connection(*args, **kwargs)
File "/Users/ngarg/Library/Python/3.9/lib/python/site-packages/memsql/common/database.py", line 62, in __init__
self.reconnect()
File "/Users/ngarg/Library/Python/3.9/lib/python/site-packages/memsql/common/database.py", line 93, in reconnect
conn = _mysql.connect(**self._db_args)
TypeError: 'db' is an invalid keyword argument for connect()
Try to google this, but didn’t find anything. I am blocked on this step.Any help is appreciated.
(Code referred from Python · SingleStore Documentation)