Do not try to check for virtualenv command, we use it as python package

This commit is contained in:
allegroai 2020-01-13 12:12:38 +02:00
parent f2e2e1f94a
commit cbfba6acb2

View File

@ -890,8 +890,6 @@ class Worker(ServiceCommandSection):
):
if not task_id:
raise CommandFailedError("Worker build must have valid task id")
if not check_if_command_exists("virtualenv"):
raise CommandFailedError("Worker must have virtualenv installed")
self._session.print_configuration()
@ -1020,8 +1018,6 @@ class Worker(ServiceCommandSection):
):
if not task_id:
raise CommandFailedError("Worker execute must have valid task id")
if not check_if_command_exists("virtualenv"):
raise CommandFailedError("Worker must have virtualenv installed")
try:
current_task = self._session.api_client.tasks.get_by_id(task_id)