Custom scenario on variable change

lau_sch
lau_sch Registered Posts: 7 ✭✭✭

Hello,

my trigger does not launch with this trigger even though variables VAR_A and VAR_B are set to 1 :

from dataiku.scenario import Trigger
import dataiku

PROJECT_ID = "RCU_V2"
client = dataiku.api_client()
project_handle = client.get_project(PROJECT_ID)
variables = project_handle.get_variables()
print(variables)

t = Trigger()

if variables['standard']['VAR_A'] == 1 & variables['standard']['VAR_B'] == 1:
t.fire()

Tagged:

Best Answer

Answers

Setup Info
    Tags
      Help me…