windmill-labs / windmill

Open-source developer platform to power your entire infra and turn scripts into webhooks, workflows and UIs. Fastest workflow engine (13x vs Airflow). Open-source alternative to Retool and Temporal.
https://windmill.dev
Other
11.06k stars 542 forks source link

feature: support for async def main in python #4589

Open smuun opened 1 month ago

smuun commented 1 month ago

Not entirely sure how this should work or if it's a use case you want to support.

Problem:

Proposal:

smuun commented 1 month ago

Also - if you do try to define a async def main() script, you get a "could not parse" error. Better error message would be "async main not allowed"