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
Unanswered
Hi Everyone, I'M Trying To Launch A Clearml Task With Aws Lambda. What I'D Like To Do Is Simply To Use Task.Create() To Launch A Task That Will Be Executed Remotely. The Main Problem Is That Task.Create() Seems To Be Relying On


Hi LovelyHamster1 ,

I had similar issue and used the APIClient ( from clearml.backend_api.session.client import APIClient ).

I cloned a template_task and did some changes, and enqueue it after, here is the code:

` from clearml.backend_api.session.client import APIClient

api_client = APIClient()

BASE_TASK_ID = "MY TASK ID"

Task.get_task

template_task = api_client.tasks.get_by_id(BASE_TASK_ID)

Task.clone

cloned_task = api_client.tasks.clone(task=template_task.id,
new_task_name=f"{template_task.name} from AWS lambda",
new_task_tags=template_task.tags,
new_task_comment=template_task.comment,
new_task_parent=template_task.id if not template_task.parent else template_task.parent,
new_task_project=template_task.project,
)

Do your changes here

.

.

.

Task.enqueue

all_queues = api_client.queues.get_all(name="default", only_fields=["id"])
queue_id = all_queues[0].id
api_client.tasks.enqueue(task=cloned_task.id, queue=queue_id) `I worked with this https://allegro.ai/clearml/docs/rst/references/clearml_api_ref/index.html

I also added a layer with ClearML

  
  
Posted 3 years ago
187 Views
0 Answers
3 years ago
one year ago