All Projects → moondef → jobrun

moondef / jobrun

Licence: MIT License
A tiny JavaScript job runner for MongoDB

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to jobrun

Jobs
jobs 分布式任务调度平台
Stars: ✭ 245 (+1784.62%)
Mutual labels:  job-scheduler
Unity-Multithreaded-Job-System
A multithreaded job system for Unity3d
Stars: ✭ 23 (+76.92%)
Mutual labels:  job-scheduler
gronx
Lightweight, fast and dependency-free Cron expression parser (due checker), task scheduler and/or daemon for Golang (tested on v1.13 and above) and standalone usage
Stars: ✭ 206 (+1484.62%)
Mutual labels:  job-scheduler
nest-queue
Queue manager for NestJS Framework for Redis (via bull package)
Stars: ✭ 69 (+430.77%)
Mutual labels:  job-scheduler
SQLServerTools
This repo is the home of various SQL-Server-Tools
Stars: ✭ 28 (+115.38%)
Mutual labels:  job-scheduler
agendash-v2
A modern, secure, and reliable dashboard for Agenda with search and pagination capabilities written in vue.js
Stars: ✭ 27 (+107.69%)
Mutual labels:  job-scheduler
Cronsun
A Distributed, Fault-Tolerant Cron-Style Job System.
Stars: ✭ 2,493 (+19076.92%)
Mutual labels:  job-scheduler
robin
robin provides a high performance golang goroutine library and job scheduling、in-memory cache for humans.
Stars: ✭ 28 (+115.38%)
Mutual labels:  job-scheduler
scattersphere
Job Coordination API for Tasks
Stars: ✭ 30 (+130.77%)
Mutual labels:  job-scheduler
go-xxl-job-client
xxl-job go client
Stars: ✭ 36 (+176.92%)
Mutual labels:  job-scheduler
rapp
Cross-platform entry point library
Stars: ✭ 57 (+338.46%)
Mutual labels:  job-scheduler
every
Fluent API job scheduling engine for .NET
Stars: ✭ 22 (+69.23%)
Mutual labels:  job-scheduler
orkid-node
Reliable and modern Redis Streams based task queue for Node.js 🤖
Stars: ✭ 61 (+369.23%)
Mutual labels:  job-scheduler
Backgroundable Android
Collection of stock apps and mechanisms, which might affect background tasks and scheduled alarms.
Stars: ✭ 247 (+1800%)
Mutual labels:  job-scheduler
tracking-location-provider-android
Tracking the android mobile and animating marker smoothly in Google Maps. Tracking has been done both in foreground and background. Tested in Android Oreo 8.1, Android 6.0 and Android 5.0
Stars: ✭ 37 (+184.62%)
Mutual labels:  job-scheduler
Dalga
⏰ MySQL backed Job Scheduler with a HTTP interface
Stars: ✭ 230 (+1669.23%)
Mutual labels:  job-scheduler
tasq
A simple task queue implementation to enqeue jobs on local or remote processes.
Stars: ✭ 83 (+538.46%)
Mutual labels:  job-scheduler
future.batchtools
🚀 R package future.batchtools: A Future API for Parallel and Distributed Processing using batchtools
Stars: ✭ 77 (+492.31%)
Mutual labels:  job-scheduler
reactr
Function scheduler for Go & WebAssembly
Stars: ✭ 264 (+1930.77%)
Mutual labels:  job-scheduler
task-spooler
A scheduler for GPU/CPU tasks
Stars: ✭ 77 (+492.31%)
Mutual labels:  job-scheduler

Jobrun

Simple job runner for MongoDB

Usage

$ npm install --save jobrun

or

$ yarn add jobrun

Example of usage

const dbLink = 'mongodb://localhost:27017/jobrunner'; 

const myJb = new JobRun(dbLink);

const DELETE_UNACTIVE_USERS = 'delete unactive users';

myJb.createJob(DELETE_UNACTIVE_USERS, () => {
  User.remove({lastLogIn: {$lt: yourDate}});
});

(async () => {
  await myJb.start();
  await myJb.every(3000, DELETE_UNACTIVE_USERS);
})();

Documentation

  • createJob(url, cb)
  • start()
  • every(timeout, url)
  • stop(url)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].