I want to set a trigger to ingest a unique url every 15 minutes. I would like one portion of the url to change for each ingestion, depending on the time of the trigger. This portion is formatted as so: 'yyyyMMddHHmm' I cannot use now(), because occasionally it runs a minute late, causing the url portion to end with 16 instead of 15, which does not exist. The ideal solution is to replace {{ now() }} with {{ trigger.date }} so that the url format will always represent a 15 minute interval.
Actual Behaviour
I get this error when I attempt to use {{ trigger.date }} instead of {{ now() }}:
"Evaluate Failed with error 'Missing variable: 'date' on 'http://...{{ trigger.date | date('yyyyMMddHHmm') }}00.CSV.zip' at line 1'"
Steps To Reproduce
Begin creating a flow with a trigger in the kestra editor
Make one of the inputs a url
In the trigger, take a url as an input parameter.
Use {{ trigger.date }} as a variable in the url
Execute the flow and watch the logs in kestra for an error/success
Expected Behavior
I want to set a trigger to ingest a unique url every 15 minutes. I would like one portion of the url to change for each ingestion, depending on the time of the trigger. This portion is formatted as so: 'yyyyMMddHHmm' I cannot use now(), because occasionally it runs a minute late, causing the url portion to end with 16 instead of 15, which does not exist. The ideal solution is to replace {{ now() }} with {{ trigger.date }} so that the url format will always represent a 15 minute interval.
Actual Behaviour
I get this error when I attempt to use {{ trigger.date }} instead of {{ now() }}:
"Evaluate Failed with error 'Missing variable: 'date' on 'http://...{{ trigger.date | date('yyyyMMddHHmm') }}00.CSV.zip' at line 1'"
Steps To Reproduce
Environment Information
Example flow