在 Zeit Now 无服务器上使用 Python 进行并行处理

Parallel processing with Python on Zeit Now serverless

是否可以在无服务器平台 Zeit Now 上的 Python 程序 运行 中使用并行处理(例如线程、进程、异步任务)?

目前无法在 Now 平台上的程序 运行 中使用任何并行处理功能,例如进程、线程或异步任务。

请注意,具有这些功能的程序不会产生任何错误或警告。将调用并行处理的部分将不会执行。

此行为目前只有少量记录(间接提及 here),但我在开发人员的内部支持论坛上确认了这一点。他们还说他们知道这是一个关键功能,并且正在努力添加诸如队列之类的解决方案。

支持论坛上的回答:

Due to the environment, it is not possible to do that. once you respond the process is terminated.

You are looking for queue support, which will be released soon.