Unanswered
Hi, I'Ve Asked
Not sure if this is a valid solution, but if you have your docker container already pre-configured with all requirements - you can set the Task to ignore/disregards your DEV requirements. It should look somewhat like this -
` def ignore_task_requirements():
task=Task.current_task()
with task._edit_lock:
task.reload()
script = task.data.script
pip_req = script.requirements["pip"]
pip_req_splitted = pip_req.split("\n")
pip_req_commented = '\n#'.join(pip_req_splitted)
script.requirements["pip"] = pip_req_commented
task._edit(script=script) `
160 Views
0
Answers
4 years ago
one year ago