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!
Hello,
I'm trying to launch scenario with custom trigger the first open day of each month. Did someone could help me on that ?
Thanks
You can use this library. You can see some examples here as well.
Thanks for your help, but my problem is to run the scenario the first OPEN day of the month. So if the first is a sunday, the scenario should run the 2nd, monday.
Hi,
I suspect that by open day you actually mean business day?
If so you can take advantage of pandas date_range method. In your custom python trigger you could input.
from dataiku.scenario import Trigger
import pandas as pd
from datetime import date
t = Trigger()
if date.today() in pd.date_range('1/1/2023', '12/1/2023', freq='BMS')
t.fire()