Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi Everyone, Documentation Stands That

Hi everyone,
Documentation stands that tasks.get_all() has a include_subprojects keyword. But this piece of code:

tasks = client.tasks.get_all(
    system_tags=["-archived"],
    only_fields=["id"],
    page_size=task_page_size,
    page=task_page,
    project=[project.id],
    include_subprojects=True
)

gets me an error:

Traceback (most recent call last):
  File "d:\Job\clearml\cleanup-service\prokects.py", line 52, in <module>
    tasks = client.tasks.get_all(
            ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\v-eliseev\AppData\Local\miniconda3\envs\clearml\Lib\site-packages\clearml\backend_api\session\client\client.py", line 422, in get
    result=self.session.send(request_cls(*args, **kwargs)),
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\v-eliseev\AppData\Local\miniconda3\envs\clearml\Lib\site-packages\clearml\backend_api\services\v2_23\tasks.py", line 8279, in __init__
    super(GetAllRequest, self).__init__(**kwargs)
  File "C:\Users\v-eliseev\AppData\Local\miniconda3\envs\clearml\Lib\site-packages\clearml\backend_api\session\request.py", line 31, in __init__
    raise ValueError('Unsupported keyword arguments: %s' % ', '.join(kwargs.keys()))
ValueError: Unsupported keyword arguments: include_subprojects

Please, help, what i am doing wrong?
None

  
  
Posted 15 days ago
Votes Newest

Answers 4


@<1691983266761936896:profile|AstonishingOx62> agreed, will push it forward

  
  
Posted 9 days ago

Hi @<1744891825086271488:profile|RoundElephant20>
That worked, thank you! It would be great if you mention _allow_extra_fields_ in the documentation 🙂

  
  
Posted 11 days ago

Hi @<1691983266761936896:profile|AstonishingOx62> , I think it's an issue related to the schema generated by the sdk, can you try adding _allow_extra_fields_ as True with the same call?

  
  
Posted 11 days ago

Hi @<1691983266761936896:profile|AstonishingOx62> , what if you try directly with the REST api and no the APIClient?

  
  
Posted 11 days ago
79 Views
4 Answers
15 days ago
9 days ago
Tags