gnsilence / hangfirehttpjob Goto Github PK
View Code? Open in Web Editor NEWhangfire的拓展程序,在原作者基础上增加了一些功能,调用api的方式来执行定时任务
Home Page: http://49.233.174.240:8055/job
License: MIT License
hangfire的拓展程序,在原作者基础上增加了一些功能,调用api的方式来执行定时任务
Home Page: http://49.233.174.240:8055/job
License: MIT License
我们不希望在web端执行后台任务,有单独的windowsservice程序执行,
是不是直接在web客户端配置以下代码就行了
//使用redis config.UseRedisStorage(Redis, new Hangfire.Redis.RedisStorageOptions() { FetchTimeout = TimeSpan.FromMinutes(5), Prefix = "{hangfire}:", //活动服务器超时时间 InvisibilityTimeout = TimeSpan.FromHours(1), //任务过期检查频率 ExpiryCheckInterval = TimeSpan.FromHours(1), DeletedListSize = 10000, SucceededListSize = 10000 }) .UseHangfireHttpJob(new HangfireHttpJobOptions() { AddHttpJobButtonName = "添加计划任务", AddRecurringJobHttpJobButtonName = "添加定时任务", EditRecurringJobButtonName = "编辑定时任务", PauseJobButtonName = "暂停或开始", DashboardTitle = "XXX公司任务管理", DashboardName = "后台任务管理", DashboardFooter = "XXX公司后台任务管理V1.0.0.0" }) .UseConsole(new ConsoleOptions() { BackgroundColor = "#000079" }) .UseDashboardMetric(DashboardMetrics.AwaitingCount) .UseDashboardMetric(DashboardMetrics.ProcessingCount) .UseDashboardMetric(DashboardMetrics.RecurringJobCount) .UseDashboardMetric(DashboardMetrics.RetriesCount) .UseDashboardMetric(DashboardMetrics.FailedCount) .UseDashboardMetric(DashboardMetrics.ServerCount);
服务器端需要配置什么吗?除UseHangfireServer等基本配置外
如题,请指导以下,感谢
Hi.
This is not a bug/issue per se. Its just that I am unable to get the button to show up on the dashboard's UI as shown in the screenshots.
I have referred the sample code also, but no luck.
I am using this for MySQL storage. Regular Hangfire and its jobs seem to be working fine.
My project is a MVC Web Application.
I don't really know what else to post here for you to understand the problem better, so please ask and help me fix this.
P.S. I found this to be the best place to inform about my issue. If this is not place to do it, please point me in the right direction.
StackExchange 在.net core 下存在并发问题,建议更换成csredis
我在http webapi中处理定时任务,如果有业务逻辑上的错误,我返回500错误是否会让job进入失败状态呢?
update net core 3.0
An unhandled exception occurred while processing the request.
RedisConnectionException: UnableToConnect on 127.0.0.1:6390/Interactive, Initializing, last: NONE, origin: BeginConnectAsync, outstanding: 0, last-read: 2s ago, last-write: 2s ago, unanswered-write: 191439s ago, keep-alive: 60s, state: Connecting, mgr: 10 of 10 available, last-heartbeat: never, global: 0s ago, v: 2.0.513.63329
在使用ant-design-pro vue 下,结合identityserver4的管理系统中已经实现了后台任务管理,包含立即执行操作,
.net core版本3.1
演示地址:http://49.233.174.240:44357/
账号:admin
密码:Admin123...
请勿删除演示数据
update net 6.0
http://localhost:9006/job/recurring ---> 添加周期任务 一栏
重复了3个按钮,其中添加周期按钮,提示的代码内容遮盖住了
无法提交,F12删除后提交报错
.NETCORE 3.1中添加任务一直报error, 数据库是SqlServer,一直报405,系统引用是1.0.7版本,下载你的代码的版本为1.0.5,什么鬼?看了下1.0.5的源码好像是
if (string.IsNullOrEmpty(jobItem.Corn))
{
context.Response.StatusCode = (int)HttpStatusCode.MethodNotAllowed;
return Task.FromResult(false);
}
这里会返回405.但是明明参数有数据?
我已经创建了一个job,当我创建第二个job时,点击保存没有新的job出现,而是把第一个job给覆盖了
现在运行日志默认只保存3天,但是我想根据不同的job配置不同保存天数,请问如何配置?
I saw a familiar project in github
https://github.com/yuzd/Hangfire.HttpJob
do you know it ?can you get a cooperation?
引用nuget包之后
如何在界面中添加按钮
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.