Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tkyshm/delay
delay job queue
https://github.com/tkyshm/delay
delayed-jobs distributed-systems docker erlang job-queue job-scheduler
Last synced: about 1 month ago
JSON representation
delay job queue
- Host: GitHub
- URL: https://github.com/tkyshm/delay
- Owner: tkyshm
- License: other
- Created: 2017-03-04T05:23:53.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-20T02:28:26.000Z (almost 8 years ago)
- Last Synced: 2024-10-29T12:59:49.232Z (3 months ago)
- Topics: delayed-jobs, distributed-systems, docker, erlang, job-queue, job-scheduler
- Language: Erlang
- Size: 53.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/tkyshm/delay.svg?branch=master)](https://travis-ci.org/tkyshm/delay)
delay
=====Simple delay job Application
Build
-----$ rebar3 compile
----
## API
### POST /api/enqueue
- Content-Type: application/json
- Post parametersparam | description
---------- | -------------------------------------------------------
exec\_time | exec\_time is specified by unixtime (seconds). (optional)
webhook | GET request to webhook when a job is finished. (optional)
data | user job's parameters. (optional)```json
{
"event": "event_name",
"exec_time": 1488714710,
"webhook": "hook_url",
"data" : {
"id": "xxx",
"name": "kirito"
}
}
```### GET /api/dequeue
- Support long-polling
- Request headers:header | value
--------------- | --------------------------------------
X-Delay-Timeout | Long-polling timeout (seconds).- Response:
```json
[
{
"uid": "afcc27ac-3f03-4cdd-ad73-ddd9422b56d6",
"data": {
"name": "abc",
"id": "12304"
}
},
{
"uid": "ad09e2c3-f14f-4c51-a8df-6b7a3b7ba3d6",
"data": {
"name": "defg",
"id": "348593"
}
}
]
```### TODO:
- [x] enqueue
- [x] docker
- [x] mnesia
- [x] job worker
- [x] dequeue
- [x] long-polling
- [x] webhook
- [x] test code
- [x] ci
- [ ] load test
- [ ] document
- [ ] cleans commit