Job for Instance Sanity Check

AliciaCGuti2906
AliciaCGuti2906 Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 8

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

Tagged:

Best Answer

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,090 Neuron
    Answer ✓

    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.

Answers

  • Turribeach
    Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,090 Neuron
    edited July 17

    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:

    Screenshot 2024-02-14 at 09.35.05.png

  • AliciaCGuti2906
    AliciaCGuti2906 Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 8

    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,

  • AliciaCGuti2906
    AliciaCGuti2906 Dataiku DSS Core Designer, Dataiku DSS Adv Designer, Registered Posts: 8

    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,

Setup Info
    Tags
      Help me…