You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying the example on py-tes, version 0.4.0 with a local installation of the latest commit of Funnel (b906ba8) running on http://localhost:8000 results in a TypeError when calling cli.get_task(task_id), suggesting that the response provided by Funnel does not conform to TES specs.
This assumes that py-tes is basing its validation/unmarshalling on the latest version of the specs. At a cursory glance, it does. If it doesn't, the issue applies to py-tes instead.
Expected outcome
For the example call, .get_task(task_id) should return a response object corresponding to the TesTask model in the TES specification without throwing an error.
Actual outcome
First error in stack:
TypeError: ("'logs' must be a list of <class 'tes.models.ExecutorLog'> (got [TaskLog(start_time=datetime.datetime(2020, 7, 8, 21, 17, 36, 222942, tzinfo=tzoffset(None, 7200)), end_time=None, metadata=None, logs=None, outputs=None, system_logs=None)] that is a list of <class 'tes.models.TaskLog'>).", Attribute(name='logs', default=None, validator=<optionalvalidatorfor_ListOfValidator(type=<class'tes.models.ExecutorLog'>) orNone>, repr=True, eq=True, order=True, hash=None, init=True, metadata=mappingproxy({}), type=None, converter=None, kw_only=False), <class'tes.models.ExecutorLog'>, [TaskLog(start_time=datetime.datetime(2020, 7, 8, 21, 17, 36, 222942, tzinfo=tzoffset(None, 7200)), end_time=None, metadata=None, logs=None, outputs=None, system_logs=None)])
Description
Trying the example on
py-tes
, version0.4.0
with a local installation of the latest commit of Funnel (b906ba8
) running onhttp://localhost:8000
results in aTypeError
when callingcli.get_task(task_id)
, suggesting that the response provided by Funnel does not conform to TES specs.This assumes that
py-tes
is basing its validation/unmarshalling on the latest version of the specs. At a cursory glance, it does. If it doesn't, the issue applies topy-tes
instead.Expected outcome
For the example call,
.get_task(task_id)
should return a response object corresponding to theTesTask
model in the TES specification without throwing an error.Actual outcome
First error in stack:
Entire traceback:
Steps to reproduce
Start Funnel:
Send task and check status:
Note that the error does not occur if
view='MINIMAL'
is passed to.get_task()
; only viewsBASIC
andFULL
cause the error to be raised.Environment
b906ba8
as per instructionspy-tes v0.4.0
; installed viapip
The text was updated successfully, but these errors were encountered: