You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/team4yf/go-scheduler

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/team4yf/go-scheduler

v0.0.0-20201009071835-d021e3a8c093
Source
Go
Version published
Created
Source

Go-Scheduler

A Job scheduler.

Content

  • Introduce
  • Features
  • TODO
  • API List
  • Deploy Manual

Introduce

it's build with yf-fpm-server, base the postgresql/mysql, send http request accroding to the defined CRON.

Features

  • add job
  • list jobs
  • run once
  • start/puase the single job
  • notify the result by topics.
  • save all the logs for each job
  • see the job execute report

TODO

  • use redis/etcd to make it support cluster distribute.
  • use MQ to support more notify methods.
  • support notify by email.

API List

  • GET /biz/job/list

    fetch all job list.

  • GET /biz/job/execute?code={code}

    run once by the specific job code.

  • POST /biz/job/add

    create a job.

  • POST /biz/job/update

    update the job, basiclly use it to define the job's status. auto start or not.

  • GET /biz/job/remove?code={code}

    remove the job. it can not be restart.

  • GET /biz/job/get?code={code}

    get the job detail.

  • GET /biz/job/pause?code={code}

    pause the job, it can be restart.

  • GET /biz/job/tasks?code={code}&skip={skip}&limit={limit}

    get the tasks of the job.

Deploy Manual

  • defined the config.*.yaml

    mode: debug
    addr: ':8080'
    name: go-scheduler
    
    cron:
        store: db
    db:
        engine: postgres
        user: devuser
        password: DevPass123
        host: localhost
        port: 5432
        database: devdb
        charset: utf8
        showsql: true
    
  • define the enviroment GS_DEPLOY_MODE=PROD

    it will load the config file conf/config.prod.yaml,

    config.local.yaml for default.

FAQs

Package last updated on 09 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.