简体   繁体   English

如何按计划运行 Python 项目(AWS、Heroku 等)?

[英]How to run a python project on schedule (AWS, Heroku, etc)?

I have a python etl project that I was to run on a schedule.我有一个要按计划运行的 python etl 项目。 I am a bit lost on where to start.我对从哪里开始有点迷茫。 I have seen some tutorials using Heroku and AWS Lambda, but these were all single script files.我看过一些使用 Heroku 和 AWS Lambda 的教程,但这些都是单个脚本文件。 My main script references multiple packages that are all in the same project directory.我的主脚本引用了都在同一个项目目录中的多个包。 Am I able to deploy the entire project and have it run the main script on a schedule?我能否部署整个项目并让它按计划运行主脚本? If so, what tools/services should I be looking at?如果是这样,我应该查看哪些工具/服务?

See Lambda Scheduled Events .请参阅Lambda 计划事件 You can create a Lambda function and direct AWS Lambda to execute it on a regular schedule.您可以创建一个 Lambda 函数并指示 AWS Lambda 定期执行它。 You can specify a fixed rate (for example, execute a Lambda function every hour or 15 minutes), or you can specify a Cron expression.您可以指定固定速率(例如,每小时或每 15 分钟执行一次 Lambda 函数),也可以指定 Cron 表达式。

Be aware of the Lambda package size limits .请注意Lambda 包大小限制

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM