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')
Hi @<1706116294329241600:profile|MinuteMouse44> , is there any worker listening to the queue?
yes, if I manually put any task in this queue, it starts without problems
Can you verify in the INFO section of an individual step to what queue it is enqueued into? Can you see them in the Queues page?
yes I see this tast in queue, but they just ‘pending’
@<1706116294329241600:profile|MinuteMouse44> Could you solve the issue?