Skip to main content

removeDependency

client.jobs.removeDependency(id: string, targetId: string): Promise<void>

Removes a dependency from a job.

Detaches the dependency link between the job and its target, which may unblock the job if this was its only remaining dependency.

Parameters

ParameterTypeRequiredDescription
idstringYesThe unique identifier of the dependent job
targetIdstringYesThe unique identifier of the dependency target to remove

Returns

Promise<void> — A promise that resolves when the dependency has been removed

Example

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

const client = new CodeBoltClient();

const result = await client.jobs.removeDependency('id', 'targetId');
console.log(result);