Coder Social home page Coder Social logo

windows.taskschedule's Introduction

Windows.TaskSchedule

简介

Windows下的微型任务调度框架,整合Cron表达式,封装任务调度逻辑,让任务开发者只需关注具体任务逻辑。

支持通过配置文件快速定义调度任务,支持快速部署为WindowService,支持DLL和EXE两种任务类型。

范例

引用Windows.TaskSchedule.Impl,实现IJob接口(逻辑上exe类型可不实现,但建议所有任务都继承)。

任务配置

DLL任务

<Job name="dlljob" type="assembly" path="namespance.dlljob,namespance" cornExpress="0/5 * * * * ?"  />

EXE任务

<Job name="exejob" type="exe" path="${basedir}\exejob.exe" arguments="1" cornExpress="0/5 * * * * ?"  />

部署WindowService

在命令行执行以下指令即可,具体参考Topshelf

安装

Windows.TaskSchedule.exe install
Windows.TaskSchedule.exe start

卸载

Windows.TaskSchedule.exe stop
Windows.TaskSchedule.exe uninstall

来源

此版本为优化版本,原项目请参考以下link

Windows-TaskSchedule

windows.taskschedule's People

Contributors

ericktse avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.