MCPcopy
hub / github.com/facefusion/facefusion / add_step

Function add_step

facefusion/jobs/job_manager.py:115–125  ·  view source on GitHub ↗
(job_id : str, step_args : Args)

Source from the content-addressed store, hash-verified

113
114
115def add_step(job_id : str, step_args : Args) -> bool:
116 job = read_job_file(job_id)
117
118 if job:
119 job.get('steps').append(
120 {
121 'args': step_args,
122 'status': 'drafted'
123 })
124 return update_job_file(job_id, job)
125 return False
126
127
128def remix_step(job_id : str, step_index : int, step_args : Args) -> bool:

Callers 15

test_run_jobFunction · 0.90
test_run_jobsFunction · 0.90
test_retry_jobFunction · 0.90
test_retry_jobsFunction · 0.90
test_run_stepsFunction · 0.90
test_finalize_stepsFunction · 0.90
test_collect_output_setFunction · 0.90
test_create_jobFunction · 0.90
test_submit_jobFunction · 0.90
test_submit_jobsFunction · 0.90
test_add_stepFunction · 0.90
test_remix_stepFunction · 0.90

Calls 2

read_job_fileFunction · 0.85
update_job_fileFunction · 0.85

Tested by 15

test_run_jobFunction · 0.72
test_run_jobsFunction · 0.72
test_retry_jobFunction · 0.72
test_retry_jobsFunction · 0.72
test_run_stepsFunction · 0.72
test_finalize_stepsFunction · 0.72
test_collect_output_setFunction · 0.72
test_create_jobFunction · 0.72
test_submit_jobFunction · 0.72
test_submit_jobsFunction · 0.72
test_add_stepFunction · 0.72
test_remix_stepFunction · 0.72