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

Function task_new

shared/utils/task/task_new.py:110–135  ·  view source on GitHub ↗

Core new task creation, shared with root tasks and sub tasks...

(session,
             job,
             file_id,
             guide_id,
             label_dict,
             file_original_id,
             kind = 'human',
             task_type = 'draw',
             incoming_directory = None)

Source from the content-addressed store, hash-verified

108
109
110def task_new(session,
111 job,
112 file_id,
113 guide_id,
114 label_dict,
115 file_original_id,
116 kind = 'human',
117 task_type = 'draw',
118 incoming_directory = None):
119 """
120
121 Core new task creation, shared with root tasks and sub tasks...
122
123 """
124
125 return Task.new(
126 session = session,
127 job = job,
128 file_id = file_id,
129 guide_id = guide_id,
130 label_dict = label_dict,
131 file_original_id = file_original_id,
132 kind = kind,
133 task_type = task_type,
134 incoming_directory = incoming_directory
135 )
136
137
138def copy_file(session,

Callers 1

root_task_newFunction · 0.85

Calls 1

newMethod · 0.45

Tested by

no test coverage detected