WindmillWWindmill
Powered by
TreyT
Windmill•5mo ago•
1 reply
Trey

Unable to pass the global results object to inline script

Attempting to pass the global results object for a flow into an inline script, but the value of the argument is empty.

Inline python script:

def main(results: dict[str, Any]):
    return results # this returns an empty dict. Expecting it to return all of the results collected during flow run.
def main(results: dict[str, Any]):
    return results # this returns an empty dict. Expecting it to return all of the results collected during flow run.


When i click on the 'In' tab at the bottom of the inline script flow chart block, it shows all of the results data, but when i click on the 'Out' tab, it shows {}.

Not sure if this is intended behavior or a bug.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Unable to pass any var to object field for subflow
TreyTTrey / help
4mo ago
Unable to access results value
TreyTTrey / help
5mo ago
import workplace script in inline skript
chrschCchrsch / help
15mo ago
Inline script triggered on App launch
SpiriteliumSSpiritelium / help
2y ago