(job_id : str, step_args : Args)
| 113 | |
| 114 | |
| 115 | def 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 | |
| 128 | def remix_step(job_id : str, step_index : int, step_args : Args) -> bool: |