{"id":18579214,"url":"https://github.com/faust64/redis-conductor","last_synced_at":"2025-05-16T02:13:08.121Z","repository":{"id":57349695,"uuid":"116811711","full_name":"faust64/redis-conductor","owner":"faust64","description":"Redis-backed processes orchestrator - as in \"pick a master in a bunch of processes\"","archived":false,"fork":false,"pushed_at":"2023-02-25T10:36:16.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T06:38:47.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/faust64.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-09T12:11:21.000Z","updated_at":"2023-01-31T16:55:58.000Z","dependencies_parsed_at":"2024-11-06T23:40:23.680Z","dependency_job_id":"841953c0-2adf-47ec-a82c-da854fee5361","html_url":"https://github.com/faust64/redis-conductor","commit_stats":{"total_commits":26,"total_committers":2,"mean_commits":13.0,"dds":"0.038461538461538436","last_synced_commit":"a86c42e0971698955c1200d64f9145e852a7321d"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faust64%2Fredis-conductor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faust64%2Fredis-conductor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faust64%2Fredis-conductor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/faust64%2Fredis-conductor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/faust64","download_url":"https://codeload.github.com/faust64/redis-conductor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254453625,"owners_count":22073618,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:39:30.254Z","updated_at":"2025-05-16T02:13:08.106Z","avatar_url":"https://github.com/faust64.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Redis-Conductor\n\n * Last tests against master on CircleCI: [![CircleCI](https://circleci.com/gh/faust64/redis-conductor.svg?style=svg)](https://circleci.com/gh/faust64/redis-conductor)\n\n * Install with `npm install redis-conductor`\n\n * Running several instances of the same process:\n\n```\nconst conductor = require('redis-conductor');\n//use redis server at 127.0.0.0:6379, db #0\nconst neighbors = conductor('my-process-name');\n\n//or pass in redis optional options:\n//const neighbors = conductor('my-process-name', { host: redisBackend, port: redisPort, dbId: redisDb, authPass: redisPass );\n\n[...]\n    if (neighbors.isElectedMaster() !== false) {\n\tconsole.log('we know that process is currently our master');\n\tconsole.log('exec some task that should not run twice simultaneously');\n    } else {\n\tconsole.log('There is no spoon');\n    }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaust64%2Fredis-conductor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaust64%2Fredis-conductor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaust64%2Fredis-conductor/lists"}