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.. Wondering If It Is Possible To Schedule Experiments Run At A Given Time E.G. Cron Schedule Or It Needs To Be Triggered From Ui/Api

Hi.. wondering if it is possible to schedule experiments run at a given time e.g. cron schedule or it needs to be triggered from UI/API

  
  
Posted 4 years ago
Votes Newest

Answers 3


Hi PompousParrot44
Unfortunately this is still not available in the UI. As part of the Controllers, we thought of having a "Cron" controller that Clones base xperiments at a given time and schedulers them for execution. We are looking for specific use cases, to make sure this will actually answer the requirements of users.
It looks as if that might be what you are after, is this correct? What exactly is the use case here? Is it a stable daily cron job (for example retrain the an experiment at the end of the day with the latest code from the git master) ? Or is it a way to add another layer over the Job Scheduler (for example: start training in 2 hours because I still need the resource) ?

  
  
Posted 4 years ago

PompousParrot44 That should be very easy to do, basically a service mode code that clones a base task and puts it into a queue:
This should more or less do what you need :)
` from trains import Task

task = Task.init('devops', 'daily train', task_type='controller')

stop the local execution of this code, and put it into the service queue, so we have a remote machine running it.

task = execute_remotely('services')

while True:
a_task = Task.clone(base_task_id='aaabb111')
Task.enqueue(a_task.id, queue_name='default')
# wait until the next day
sleep(606024) `

  
  
Posted 4 years ago

my use case is more like 1st one where run the training at a certain given schedule

  
  
Posted 4 years ago
1K Views
3 Answers
4 years ago
one year ago
Tags