🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/grepory/scheduler

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/grepory/scheduler

v0.0.0-20170827170616-a8927e6e85c4
Source
Go
Version published
Created
Source

Scheduler

Scheduler manages a job queue and a maximum number of goroutines to handle jobs submitted to that job queue. It relies on golang.org/x/net/context, setup by Tasks being submitted to it to ensure that the scheduler doesn't deadlock on jobs that never return.

This came out of a need to carefully control the number of parallel tasks we're executing on the Opsee bastion software. We don't want a buggy check scheduler to have the ability to either DDoS customer services or inadvertantly spin the bastion out of control by launching more and more goroutines.

TODO

  • Add a nice shutdown mechanism that kills all currently executing and pending jobs and cancels their contexts, maybe?

FAQs

Package last updated on 27 Aug 2017

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