Comments (3)
I run the first example and it show this exception: Missing variable: 'my_input' on '{{ inputs.my_input }}' at line 1
which is expected ad the variable my_input
didn't exist. If you have the exception with the variable inputs
it means you are not on the latest version of Kestra.
For the second point:
In the above flow, inputs is an empty map {} as if there would be no inputs, even though there is one, even explicitly set to null.
null
means no input, one possibility would be to switch run context variables serialization to ALWAYS (inputs will be included in this list) so variables set to null would be included.
from kestra.
Let's explore that option with ALWAYS or some alternatives then. The goal is for both examples from the issue body to work in 0.17
from kestra.
great work @loicmathieu <3 I thought this would be way more complex, thx a lot!
this one also works as expected:
id: my_flow
namespace: dev
inputs:
- id: my_input
type: STRING
defaults: null
required: false
tasks:
- id: check
type: io.kestra.plugin.core.flow.If
condition: "{{ inputs.my_input is null }}"
then:
- id: isnull
type: io.kestra.plugin.core.log.Log
message: it's a null
else:
- id: isnotnull
type: io.kestra.plugin.core.log.Log
message: not null
seems like nothing left to discuss regarding serialization so I'll cancel that meeting
from kestra.
Related Issues (20)
- Allow reordering tabs in the Editor
- [Cooldown] Avoid blinking in the UI when loading a page
- io.kestra.plugin.core.storage.Purge task does not clean executions data
- Upgrading kestra from 17.5 to 17.8 breaks triggered flows executions
- A flow with realtime kafka trigger throws an exception
- avoid warnings on outdated pip when running io.kestra.plugin.scripts.python.Script HOT 1
- Previous log are not display during execution HOT 1
- Deletion of a flow does not delete old revisions and logs HOT 3
- containerImage don't have any impact without providing taskRunner HOT 2
- Suppressing logs via pluginDefaults does not prevent a task from being marked as Warning HOT 1
- All executions need to be killed and dont terminate. HOT 1
- Internal Server Error when trying disable a webhook in the ui HOT 1
- Add ability to clean executions automatically HOT 1
- Add a task allowing to purge outputs from the current execution by IDs HOT 2
- Output of PurgeExecution task is too verbose and produces broken links in Output panel HOT 1
- Add ability to provide a comment when submitting a new revision of a flow HOT 1
- Add Kestra Pulumi package/resource provider
- Display the CRON schedule in a human-readable format (worst case using AI)
- Increase the width on the Absolute date filter to display full dates
- DbtCLI throws git error HOT 2
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.