Skip to content

Background Discovery Mechanisms #691

@amydevs

Description

@amydevs

Specification

Currently, discovery must be manually triggered by the user by running identities discover on the Polykey CLI.

We would like for authenticated identities to supply connected identities for our discovery mechanism to automatically discover.

Hence, when we authenticate with a particular identity provider, Github.com for example, we should add all friends/followers/following identities to be added to the discovery queue.

We should also queue tasks that poll all friends/followers/following identities and queue them to be discovered periodically.

This would allow for new nodes that join a gestalt to be automatically detected by other nodes, and apply permissions appropriately.

Additional context

MatrixAI/Polykey-CLI#30
#626 (comment)

Tasks

  • 1. When a vertex is process, reschedule it.
  • 2. When a vertex has been processed recently then skip.
  • 3. When a vertex fails we need to reschedule it.
  • 4. Track the number of fails for a job and just give up on it if it exceeds a threshold.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions