You may want a scheduled task to be executed only on non-holidays.
You can call an API to determine whether the current day is a holiday. If it is a non-holiday, the downstream general nodes will run. If it is a holiday, Virtual Node will run, as shown in the following figure.
1. Create a scheduled task and drag a Data Transformation node onto the page.
2. Enter the Data Transformation node, add an API Input operator, and call the API https://date.nager.at/api/v3/PublicHolidays/2025/US to retrieve all U.S. holiday information for 2025, as shown in the following figure.
1. Add a Parameter Output operator and configure it to output the date field as a parameter, which can be used in the downstream Conditional Branch node to achieve the effect of executing the task on non-holidays, as shown in the following figure.
2. Click Save in the upper right corner.
1. Add a Conditional Branch node. If the current day is a non-holiday, the downstream nodes will be executed. (The Notification node is used here to facilitate viewing the effect.) If the current day is a holiday, Virtual Node will be executed, as shown in the following figure.
2. Cinfigure the Conditional Branch node. When the task is executed on a non-holiday, the downstream general nodes will run. When the task is executed on a holiday, Virtual Node will run, as shown in the following figure.
In this document, the Notification node is used as a downstream general node for demonstration purposes. In practical scenarios, you can replace the Notification node with the node that needs to be executed next as needed.
The following figure shows the setting page of the Notification node.
Effect Display
1. Click Run in the upper right corner to execute the task. The running result in Log upon successful execution is shown in the following figure.
2. The notification content is shown in the following figure.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy