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
10.02k stars 481 forks source link

feature: support for async def main in python #4589

Open smuun opened 2 hours ago

smuun commented 2 hours ago

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

Problem:

Proposal:

smuun commented 2 hours 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"