Comments (1)
hey, unfortunately, you cannot use trigger.date
within the trigger input because inputs are evaluated first before execution is even created. This means that trigger.date variable doesn't exist at the time when the inputs are evaluated. This is a safety mechanism in kestra to ensure that only executions with valid inputs are created.
you can simply accomplish your use case, though by moving the trigger expression into the task. Here is how:
id: trigger_repro
namespace: company.team
inputs:
- id: myurl
type: STRING
tasks:
- id: hello
type: io.kestra.plugin.core.log.Log
message: my file {{ inputs.myurl ?? 'http://' ~ (trigger.date | date('yyyyMMddHHmm')) ~ '00.CSV.zip' }}
triggers:
- id: pass_date
type: io.kestra.plugin.core.trigger.Schedule
cron: "*/1 * * * *"
from kestra.
Related Issues (20)
- [Epic] Improve error handling
- [Epic] Handle issues that can make the application crash
- Ease flow dependancy declaration HOT 1
- Add Execution history to the Overview tab (e.g. as a Timeline view with states the Execution went through)
- [Epic] Capture outputs generated before a task run fails i.e. store Outputs before marking the task run as Failed
- [Epic] Improve plugin docs
- File Upload Endpoint for Kestra's Internal Storage HOT 1
- Add a lightweight kestra CLI
- Add a Supabase plugin HOT 2
- Ability to process incoming webhooks with large header HOT 9
- KV json validation
- Add a Concurrency tab on the Flow page allowing to see RUNNING and QUEUED executions
- Setting keystore value from Variables HOT 2
- Remove the disabled flag from the Flow source code — this should be API-only toggle/setting for the flow
- Vanilla instance serves Dashboard page instead of Welcome Page HOT 1
- Flaky tests HOT 2
- Remove the generation of the latest-full tag
- Custom Blueprints page generates internal server error HOT 3
- namespace files overwritten with code of a different namespace file HOT 2
- [docs] `delay` should indicate time value in Documentation for Pause HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kestra.