Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/ai-music-system / scheduler.js |
| Date | Not specified in source |
| Repository | Janady13/ai-music-system |
| Revision | 9a816470ef81edba7a5d8f3aae62c05eead638a7 |
| Branch | main |
| Path or archive member | scheduler.js |
| Original SHA-256 | 8437a571ce8458bf32d0670a740cfe5c82d6ee9e62ad20c2707aeb4c6b23061f |
| Git blob SHA | 92b6deadc051fc103a5fcbee7d400ac59e5520e8 |
| Reading-copy SHA-256 | 8437a571ce8458bf32d0670a740cfe5c82d6ee9e62ad20c2707aeb4c6b23061f |
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 / scheduler.js | main | 9a816470ef81edba7a5d8f3aae62c05eead638a7 | Open original |
| Janady13/ai-music-system / scheduler.js | codex/create-ai-for-music-generation-ifwcfc | cd5207850253ee238f8a267c043b1e3c070ed81a | Open original |
| Janady13/ai-music-system / scheduler.js | codex/create-ai-for-music-generation | 017052c0e72c6175378aebb7a7f9dd96e82c3ce2 | Open original |
Recovered source transcript
Download complete source text ↓26 lines · 0.6 KB
const { Queue } = require("bullmq");
const connection = { host: "127.0.0.1", port: 6379 };
const queue = new Queue("skynet", { connection });
async function dropJob() {
const job = await queue.add(
"heartbeat",
{ at: Date.now() },
{
attempts: 3,
backoff: { type: "exponential", delay: 1000 },
removeOnComplete: 200,
removeOnFail: 200
}
);
console.log(`[${new Date().toISOString()}] enqueued job ${job.id}`);
}
(async () => {
console.log("30s scheduler started...");
while (true) {
await dropJob();
await new Promise(r => setTimeout(r, 30000)); // 30 sec delay
}
})();