Comments (2)
Thinking about this via the internal representation, the input job submission could be
{
"input": "s3://example/b34a487a-b031-4bf0-893d-18bed8c4959b/src.zip!/start.ditamap",
"output": "s3://example/b34a487a-b031-4bf0-893d-18bed8c4959b/res.zip",
"conversions": [
{
"transtype": "graphics",
"params": {},
"priority": 0
},
{
"transtype": "ooxml",
"params": {},
"priority": 0
}
]
}
Then the conversion is in progress, the job state could be something like
{
"input": "s3://example/b34a487a-b031-4bf0-893d-18bed8c4959b/src.zip!/start.ditamap",
"output": "s3://example/b34a487a-b031-4bf0-893d-18bed8c4959b/res.zip",
"id": "cd010166-7b69-4c9a-a3d2-697a7b6ac280",
"created": "2018-03-23T08:58:35.208Z",
"conversions": [
// This is an active conversion
{
"id": "cd010166-7b69-4c9a-a3d2-697a7b6ac280_1",
"input": "s3://example/b34a487a-b031-4bf0-893d-18bed8c4959b/src.zip!/start.ditamap",
// The job originally got the output above, but replaced it with this temporary storage
"output": "s3://example/b34a487a-b031-4bf0-893d-18bed8c4959b/tmp.zip!/start.ditamap",
"transtype": "graphics",
"params": {},
"status": "process",
"priority": 0,
"start": "2018-03-23T08:58:35.208Z",
"finish": null,
"worker": "worker"
},
// This conversion is still in the queue
{
"id": "cd010166-7b69-4c9a-a3d2-697a7b6ac280_2",
// This will be populated from previous conversion's output
"input": null,
// This will be populated from root output
"output": null,
"transtype": "ooxml",
"params": {},
"status": "queue",
"priority": 0,
"start": null,
"finish": null,
"worker": null
}
]
}
from kuhnuri-queue.
Implemented.
from kuhnuri-queue.
Related Issues (12)
- Check worker status after timeout
- Persist job logs instead of passing to queue
- Add filtering to jobs end-point
- Add pagination to jobs end-point
- Persist done and errored jobs to archive HOT 1
- Add password support with BCrypt
- Priority for queue items HOT 2
- Timestamp all state transitions
- Expose all job information in REST API
- Support source and result ZIP storage HOT 1
- Add support for worker specified data HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kuhnuri-queue.