Hello, I have two questions about TaskScheduler.
I follow the https://github.com/allegroai/clearml/blob/master/examples/scheduler/cron_example.py , but I can't close the TaskScheduler I created. The status is still running
. Any idea?` # Create the scheduler controller
scheduler = TaskScheduler()
Run a simple logic function, every minute
scheduler.add_task(
name="mock job",
schedule_function=simple_function,
minute=1,
)
scheduler.start_remotely(queue='services')
scheduler.start()
task id = scheduler's task id
preprocess_task = Task.get_task(task_id=task.id)
preprocess_task.close() `
2. I don't know the task id added to the scheduler so how to https://clear.ml/docs/latest/docs/references/sdk/scheduler#remove_task from the scheduler. My thought is when I remove the task from the scheduler, then the task won't continue be executed in the future.
Thanks.