MCPcopy Create free account
hub / github.com/actiontech/dtle / SaveJobInfo

Method SaveJobInfo

driver/common/store.go:361–369  ·  view source on GitHub ↗
(job JobListItemV2)

Source from the content-addressed store, hash-verified

359}
360
361func (sm *StoreManager) SaveJobInfo(job JobListItemV2) error {
362 key := fmt.Sprintf("dtleJobList/%v", job.JobId)
363 jobBytes, err := json.Marshal(job)
364 if err != nil {
365 return fmt.Errorf("save %v to consul, marshal err : %v", key, err)
366 }
367 err = sm.consulStore.Put(key, jobBytes, nil)
368 return err
369}
370
371func (sm *StoreManager) WaitOnJob(currentJob string, waitJob string, stopCh chan struct{}) error {
372 waitCh := make(chan struct{}, 0)

Callers 8

WaitOnJobMethod · 0.95
buildJobListItemFunction · 0.95
buildKafkaJobListItemFunction · 0.95
PauseJobV2Function · 0.95
ResumeJobV2Function · 0.95
RunMethod · 0.80
updateGtidLoopMethod · 0.80
RegularlyUpdateJobStatusFunction · 0.80

Calls 1

MarshalMethod · 0.65

Tested by

no test coverage detected