Fix if project has a default output uri there is no way to disable it in development mode (manual). Allow passing output_uri=False to disable it.

This commit is contained in:
allegroai 2022-11-09 11:28:25 +02:00
parent 51af6e833d
commit f0400dd099
2 changed files with 6 additions and 1 deletions

View File

@ -613,7 +613,9 @@ class Task(_Task):
# set defaults
if cls._offline_mode:
task.output_uri = None
elif output_uri:
elif output_uri is not None:
if output_uri is True:
output_uri = task.get_project_object().default_output_destination or True
task.output_uri = output_uri
elif task.get_project_object().default_output_destination:
task.output_uri = task.get_project_object().default_output_destination

View File

@ -195,6 +195,9 @@ sdk {
# Status report period in seconds
report_period_sec: 2
# The number of events to report
report_event_flush_threshold: 50
# ping to the server - check connectivity
ping_period_sec: 30