smartcontractkit / smartcontractkit/chainlink

[FEAT] Job replacement option on duplicate contract address error

Open
#6,926 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

investigating
Dominant language
Go
Stars
8.2k
Forks
2k
Avg merge
1d 23h
Merged PRs (30d)
202

Description

Description
If you add a job with a contract address that is already configured for an existing job, the Chainlink node throws an error. You then have to delete the conflicting job and add the new job. It would be a much better experience and decrease the chance of error if it simply prompted to replace the job. Ideally, this would work with the UI or the CLI (maybe a --force flag for the CLI).

Motivation
Over the past few months there have been many job replacement requests (multiple hundreds). This feature would eliminate half of the work for a node operator and decrease the possibility of removing incorrect jobs.

Justification
Another route would be to never have to replace a job, that is not very realistic.

Additional Information
Check out any node op's team slack channel for examples of replacement requests.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where duplicate contract addresses are rejected during job creation, then compare the existing UI and CLI entry points mentioned in the issue. Define whether replacement should be supported in one or both interfaces, including the proposed CLI force option; done means a conflicting job can be replaced without manual deletion and incorrect jobs are protected.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.