Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi Guys,
I have a question, is it possible to program a job in version 11.4.0 to execute the instance sanity check?
Regards,
Operating system used: Red Hat Enterprise Linux 8.9
Well it's up to you to code the output to your needs. Then you can execute the code in a Python Custom step in a Scenario and you can schedule it.
Indeed you can use the Python API for this:
import dataiku
client_handle = dataiku.api_client()
sanity_check_result = client_handle.perform_instance_sanity_check(wait=True)
if sanity_check_result.has_messages:
for message in sanity_check_result.messages:
print(message)
Here is somesample output:
Hi,
Thanks for answer.
Attached is an image of what I want to be able to execute as a recurring task in the system and thus be able to obtain and monitor it and not have to execute it daily manualy. Will this be possible?
I have found the following link, but I have not been able to take advantage of it until now. On line 1354 it talks about being able to run it as an API. Additional mention of release 12.4.2.
https://github.com/dataiku/dataiku-api-client-python/blob/master/dataikuapi/dssclient.py
Regards,
Hi,
I have executed the code that has been indicated to me and it returns important information that I would need to be able to move forward with this topic. The initial help has been useful to me.
Regards,
Well it's up to you to code the output to your needs. Then you can execute the code in a Python Custom step in a Scenario and you can schedule it.