MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / update_job

Method update_job

src/codegraphcontext/core/jobs.py:88–95  ·  view source on GitHub ↗

Updates the information for a specific job in a thread-safe manner.

(self, job_id: str, **kwargs)

Source from the content-addressed store, hash-verified

86 return job_id
87
88 def update_job(self, job_id: str, **kwargs):
89 """Updates the information for a specific job in a thread-safe manner."""
90 with self.lock:
91 if job_id in self.jobs:
92 job = self.jobs[job_id]
93 for key, value in kwargs.items():
94 if hasattr(job, key):
95 setattr(job, key, value)
96
97 def get_job(self, job_id: str) -> Optional[JobInfo]:
98 """Retrieves the information for a single job."""

Callers 7

run_scip_index_asyncFunction · 0.80
process_fileFunction · 0.80
add_code_to_graphFunction · 0.80
add_package_to_graphFunction · 0.80

Calls 1

itemsMethod · 0.80

Tested by 1