Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/ai-music-system / plugins/heartbeat.js |
| Date | Not specified in source |
| Repository | Janady13/ai-music-system |
| Revision | 9a816470ef81edba7a5d8f3aae62c05eead638a7 |
| Branch | main |
| Path or archive member | plugins/heartbeat.js |
| Original SHA-256 | fcee2629bb03bfb5a7230b141667dc89129b8577b8768e43a8d2b19e768fce23 |
| Git blob SHA | e6fc89413367c54c1e5ec72a9a177328b0b00572 |
| Reading-copy SHA-256 | fcee2629bb03bfb5a7230b141667dc89129b8577b8768e43a8d2b19e768fce23 |
Every recorded occurrence
These 3 records contain identical original source bytes. Their paths and revisions remain part of the archive.
| Original record | Branch or archive | Revision / identifier | Original location |
|---|---|---|---|
| Janady13/ai-music-system / plugins/heartbeat.js | main | 9a816470ef81edba7a5d8f3aae62c05eead638a7 | Open original |
| Janady13/ai-music-system / plugins/heartbeat.js | codex/create-ai-for-music-generation-ifwcfc | cd5207850253ee238f8a267c043b1e3c070ed81a | Open original |
| Janady13/ai-music-system / plugins/heartbeat.js | codex/create-ai-for-music-generation | 017052c0e72c6175378aebb7a7f9dd96e82c3ce2 | Open original |
Recovered source transcript
Download complete source text ↓18 lines · 0.5 KB
module.exports = {
name: "heartbeat",
scheduleSeconds: 30,
async produceJobs(queue) {
await queue.add("heartbeat", { at: Date.now() }, {
attempts: 3,
backoff: { type: "exponential", delay: 1000 },
removeOnComplete: 200,
removeOnFail: 200
});
},
async process(job, log) {
const t0 = Date.now();
await new Promise(r => setTimeout(r, 250));
log.info({ id: job.id, ms: Date.now() - t0 }, "heartbeat ok");
}
};