Skip to main content

getJobsByPheromone

client.jobs.getJobsByPheromone(type: string): Promise<Job[]>

Retrieves all jobs that have a specific pheromone type attached.

Useful for finding jobs that share a common signal, enabling swarm-style discovery of related work items.

Parameters

ParameterTypeRequiredDescription
typestringYesThe pheromone type name to filter by

Returns

Promise<Job[]> — A promise that resolves to an array of objects carrying the specified pheromone

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.jobs.getJobsByPheromone('type');
console.log(result);