Skip to main content
Question

Pipeline Jinja based on current timestamp

  • February 20, 2024
  • 0 replies
  • 536 views

I'm trying to build a pipeline that runs hourly, to perform an API call. However, I would like for the same pipeline to perform a second action once per day, at a specific hour (when the hourly run happens in the 6:00AM hour).

I understand to build an if statement as so:

IF [expression (advanced)] evaluates to TRUE
[____________________________________]

and I know that the Jinja for "now" is {{time.now}}

How would I build the expression that returns true only if the current time is within the 6:00AM hour?



------------------------------
Scott Dye
------------------------------
This topic has been closed for replies.

  • Author
  • Registered
  • February 20, 2024

I forgot to add, this would need to trigger TRUE within the 6:00 hour only M-F, not weekends.



------------------------------
Scott Dye
------------------------------