Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/goliatone/simple-task-manager
Simple task scheduler and manager
https://github.com/goliatone/simple-task-manager
Last synced: 4 days ago
JSON representation
Simple task scheduler and manager
- Host: GitHub
- URL: https://github.com/goliatone/simple-task-manager
- Owner: goliatone
- Created: 2019-08-01T05:18:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T04:36:52.000Z (over 3 years ago)
- Last Synced: 2024-10-11T09:08:22.363Z (27 days ago)
- Language: JavaScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Simple Task Manager
This is a sample project. To get started:
```
$ npm i simple-task-manager
```* Task
* Scheduler
* Manager
* WorkerHow to handle multiple workers for a single queue in distributed machines/processes?
Claim a taskWe schedule a task to run.
Execute task, increase run count when done.- [ ] A task can be scheduled to be run immediately
- `ttl === 0`
- [ ] A task can be scheduled to be run at a later date
- `ttl > 0`
- [ ] A task can be run once
- `maxRuns === 0`
- [ ] A task can be run multiple times
- [ ] `maxRuns > 0`- [ ] After an error a task can be retried if:
- [ ] We have not gone over our tries `maxTries < errorCount`
- [ ] A task can be assigned a timeout period to run
- `timeout`- [ ] A task should have a timeout for execution time
- [ ] If we start queue and worker exits the task will not be picked up by worker. We need to be able to pick up timedout tasks and requeue them, using scheduler.
## TODO
- [ ] Merge with [simple-session-manager](https://github.com/goliatone/simple-session-manage) as it has many of the same components.
## License
® License MIT by goliatone