Unanswered
Hi
I’M Trying To Schedule The Tasks Execution Using
from clearml import Task
from clearml.automation import TaskScheduler
# Create the scheduler and make it poll quickly for demo purpose
scheduler = TaskScheduler(
sync_frequency_minutes=1,
force_create_task_project='name',
force_create_task_name='Scheduler'
)
# Get the task that we want to rerun
# task_to_schedule = Task.get_task(project_name='name', task_name='')
task_to_schedule = Task.get_task(task_id='8ee7b88505a...')
# Add the scheduler based on task above and override current date to get newest data
scheduler.add_task(
schedule_task_id=task_to_schedule.id,
queue='queue_name',
day = 14,
execute_immediately=True,
)
# Start the scheduler
scheduler.start_remotely(queue='queue_name')
17 Views
0
Answers
one month ago
one month ago