问题标签 [runner]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
8 回答
2061 浏览

background - 开发 c# 长时间运行的处理器应用程序的最佳方法

我有几个不同的 c# worker 应用程序,它们运行各种连续任务:从队列发送电子邮件、将新订单从网站数据库导入订单数据库、进行数据库备份和恢复、为 OLTP -> OLAP 运行数据处理以及其他相关任务。之前,我将它们作为 Windows 服务发布,但目前我将它们作为常规控制台应用程序发布。它们都基于我创建的通用任务运行程序框架,对此我很满意,但是我不确定部署这些类型的应用程序的最佳方式是什么。我喜欢控制台版本,因为它快速简单,并且可以快速查看程序活动和输出。缺点是工作计算机有几个控制台屏幕正在运行并且变得混乱。另一方面,服务方法似乎需要很长时间才能部署,我必须通过事件日志来查看消息。对此有何经验/意见?

0 投票
20 回答
112895 浏览

ruby-on-rails - rails 的 cron 工作:最佳实践?

在 Rails 环境中运行计划任务的最佳方式是什么?脚本/跑步者?耙?我想每隔几分钟运行一次任务。

0 投票
4 回答
9259 浏览

.net - What are some good .net job scheduler and runner solutions?

I am looking for a solution, or a set of solutions with the following components:

  1. Job Scheduler - run a specific job on a specific schedule. I have seen Quartz.NET and it seems like a good framework, however I have not found it to have integrations with the components that follow.

  2. Job Runner - run a job, loaded as an AppDomain, from a directory, or from a binary stored in a database. This is of course in addition to running jobs passed in as direct references. Also, this component would be integrated with the job scheduler. Moreover, it should be possible to control this component via WCF, or the like. I would like the ability to view currently running jobs, schedule a new job by pointing to a file path, or database row, or stop a job.

  3. GUI - communicate with the Job Runner and provide a GUI shell which would expose all of the functions of the job runner. Something like the SQL Server Agent shell.

One of the things I would like to achieve with this is the ability to deploy and run a C# job with the same ease as it would be to run a SQL script through SQL Server Management Studio.

0 投票
3 回答
2011 浏览

java - 如何从 Class 方法重复制作 Jlabel addText?

我试过 swingwoker ,但它只会更新一次...... http://piggyman007.blogspot.com/2010/04/java-swingworker-multithread.html

0 投票
1 回答
161 浏览

testing - 在 SubSonic 2.1 中运行 mbUnit 2 测试时出现问题

我仍在为我的一些项目使用 Subsonic 2。想要破解它一点。我从 GIT 回购中获得了最新的信息,我正在使用 VS2008 Pro。

查看 SubSonic.Test 项目,引用的 mbUnit dll 具有“MbUnit.Framework 2.4.197”的描述,尽管文件版本是“1.0.2700.29885”。所以我假设我们正在使用 mbUnit 2.4。

我可以很好地编译项目,但我无法让 Gallio 识别 SubSonic.Tests\bin\Debug\SubSonic.Tests.dll 中的测试它只是提出“未找到测试”。

我花了几个小时试图在网上找到这种情况下的 docco,但实际上并没有。我也不热衷于修改现有项目,因为它与 GIT 起源进一步脱节。我已将魔术 GUIDS 粘贴到测试项目文件中。

TestDriven.Net 这样做:

我可以看到这是再次使用 Gallio;当然我不需要卸载 Gallio 吗?!我将它与 mbUnit 一起用于我当前的项目,效果很好。

两年前,我有这些单元测试像一只小猫一样发出咕噜咕噜的叫声,但我一生都记不起我是怎么做的。它现在是稍后的 VS 版本,我可能会在升级中丢失配置。我希望在那里找到可以进行 SubSonic v2.1 单元测试的人并问:你是如何运行测试的?

编辑:我最后联系了 Rob Conery,他确认(有些沮丧)TD .NET 不再运行 mbUnit 1 测试。他认为在 SubSonic 2 处于积极开发阶段时使用了 td.net 1.3,但我找不到该版本的任何历史下载。

这留下了我没有测试过的resharper。

如果我决定将测试框架升级到 mbUnit 3,那么我会将其发布到 GutHub。

感谢 Yann 的评论 - 我已选择您作为回答者。

更新:Subsonic 2 Github 资源在 2011 年 6 月左右升级到 mbUnit 3

0 投票
2 回答
1779 浏览

ruby - Rails 3 runner 没有检测到 JSON gem?

我正在尝试创建Ruby脚本以在我的Rails 3环境中运行。

但是,每当我使用Rails Runner运行此 ruby​​script 时,都会收到此错误:

错误:

有人可以告诉我我能做些什么来解决这个问题吗?

0 投票
3 回答
1155 浏览

ruby-on-rails - Cron 作业错误帮助 - Rails Runner 错误

基本上我需要做以下事情:

  1. 使用 RVM 加载 Ruby
  2. 导航到MyApp目录
  3. 运行以下行:rails runner "Resque.enqueue(Place)

上面的 cron 似乎正在运行,但它使用rails runner产生以下错误 这是怎么回事?

0 投票
1 回答
330 浏览

ruby-on-rails - Rails Actionmailer - 在反弹中查找原始标题

我已经通过名为“eblast-bounceback@mydomain.com”的 cpanel 设置了一个转发器,该转发器通过管道连接到跑步者(即,查找有关通过 rails 接收电子邮件的任何教程)。这部分工作得很好 - 我可以告诉脚本正在运行,因为我已将其设置为使用记录器。我遇到的问题是能够在退回电子邮件中找到我的自定义标题“X-Subscriber-Id:”。有没有办法访问原始电子邮件数据,这样我就可以进行正则表达式搜索,还是必须以更复杂的方式进行?

另一方面,如果我收到退回邮件,自动从数据库中删除电子邮件是否明智,或者我需要采取一些额外的步骤来避免恶意意图?

编辑:发布代码...

0 投票
3 回答
9831 浏览

python - 在 python unittest 中关闭一些打印

我正在使用 unittest,它会在每次测试后为“ok”、“error”和“fail”打印“.”、“E”或“F”。如何关闭它?我使用的是 Python 2.7,这些打印来自内置的 runner 类。覆盖这些类听起来非常困难,因为它们都是嵌套的。

编辑:我只想去掉字符 E 。和 F,因为它们不会与我的测试中的其他日志同时出现。

0 投票
2 回答
3579 浏览

ruby-on-rails - 尝试从跑步者中获取 Rails.cache.delete_matched

在 redmine 1.2/rails 2.3.11 上,我正在将存储库降价文件呈现为 html(就像redmine_markdown_extra_viewer所做的那样),现在我正在尝试缓存结果,该结果应该在每次提交时更新。

所以我有一个获取 repo 更改的 git 钩子,我希望它也清除相应的缓存条目。

缓存生成(在 RepositoriesController::entry 覆盖中):

应该清除缓存但没有效果的钩子:

所以它不起作用,我什至不知道我是否采取了正确的方向来实现它。非常感谢任何输入!