MCPcopy
hub / github.com/stemdeckapp/stemdeck / _set

Function _set

app/core/models.py:18–24  ·  view source on GitHub ↗

Mutate Job fields. SSE polling picks up the change automatically.

(job: Job, **fields: object)

Source from the content-addressed store, hash-verified

16
17
18def _set(job: Job, **fields: object) -> None:
19 """Mutate Job fields. SSE polling picks up the change automatically."""
20 for k, v in fields.items():
21 if k == "stage":
22 job.stage_message = v # type: ignore[assignment]
23 else:
24 setattr(job, k, v)
25
26
27@dataclass

Callers 10

vhookFunction · 0.90
_download_video_trackFunction · 0.90
downloadFunction · 0.90
hookFunction · 0.90
_prepare_local_sourceFunction · 0.90
_run_commonFunction · 0.90
_run_asyncFunction · 0.90
run_pipelineFunction · 0.90
analyzeFunction · 0.90
separateFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected