MCPcopy Index your code
hub / github.com/diffgram/diffgram / main

Method main

shared/utils/task/task_update_manager.py:33–46  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 self.log = regular_log.default()
32
33 def main(self):
34 old_status = self.task.status
35 if self.mode == 'toggle_deferred':
36 self.defer()
37 if self.mode == 'incomplete':
38 self.status = 'in_progress'
39 self.change_status()
40 if self.status:
41 self.change_status()
42 regular_methods.try_to_commit(self)
43 self.emit_task_event_based_on_status(old_status, self.task)
44 self.update_related_file_status(old_status, self.task)
45 self.task.job.refresh_stat_count_tasks(self.session)
46 return
47
48 def update_related_file_status(self, old_status, updated_task: Task):
49 if updated_task.status == 'complete':

Callers 10

job_cancel_coreFunction · 0.95
task_review_coreFunction · 0.95
task_update_apiFunction · 0.95
get_next_task_by_projectFunction · 0.95
get_next_task_by_jobFunction · 0.95
task_completeFunction · 0.95
get_task_from_job_idMethod · 0.95
send_to_review_randomlyFunction · 0.45

Calls 6

deferMethod · 0.95
change_statusMethod · 0.95
try_to_commitMethod · 0.45

Tested by

no test coverage detected