We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On executing the flow, I am expecting the "outputs.out" to have a file containing 2 rows:
555 666
Getting an empty file in outputs.out.
outputs.out
id: "eval" type: "io.kestra.plugin.scripts.jython.Eval" outputs: - out - map script: | from io.kestra.core.models.executions.metrics import Counter import tempfile from java.io import File logger.info('executionId: {}', runContext.render('{{ execution.id }}')) runContext.metric(Counter.of('total', 666, 'name', 'bla')) map = {'test': 'here'} tempFile = tempfile.NamedTemporaryFile() tempFile.write('555\n666\n') out = runContext.putTempFile(File(tempFile.name))
The text was updated successfully, but these errors were encountered:
AttributeError: 'io.kestra.core.runners.DefaultRunContext' object has no attribute 'putTempFile' in <script> at line number 12
@shrutimantri can you update the reproducer please, it doesn't work on my side 🤔
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
On executing the flow, I am expecting the "outputs.out" to have a file containing 2 rows:
Actual Behaviour
Getting an empty file in
outputs.out
.Steps To Reproduce
Environment Information
Example flow
The text was updated successfully, but these errors were encountered: