Unanswered
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
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) `
168 Views
0
Answers
4 years ago
one year ago