计划在 appharbor.com 上部署的方法应用程序
不久前,我编写了一个应用程序,可以从多个网站爬取数据,将数据解析为特定格式并将这些数据发送到特定的电子邮件地址。
该应用程序每天通过 Windows 任务计划程序执行 x 次。
现在我想将此应用程序部署到 appharbor (我不确定是否可以部署控制台或库应用程序)。
如何通过代码安排方法执行?
A while ago I've wrote an application that crawlers data from several websites, parses the data into specific format and sends this data to specific email address.
The app was executed x times a day via windows task scheduler.
Now I want to deploy this app to appharbor (i am not sure if it's possible to deploy console or library applications).
How can I schedule method executions via code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们正在努力向 AppHarbor 添加后台任务(它将以运行您推送的控制台应用程序的形式)。如果任务不需要太长时间(例如少于约 90 秒),则在控制器中执行它是一个可行的解决方法。您可以使用 MomentApp 等服务来触发抓取工具。
We're working on adding background tasks to AppHarbor (it will be in the form of running console applications that you push). If the task doesn't take too long (eg. less that ~90 seconds), doing it in a controller is a viable workaround. You can use a service like MomentApp to trigger your crawler.