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 I’M Trying To Schedule The Tasks Execution Using

Hi
I’m trying to schedule the tasks execution using clearml.automation.TaskScheduler
But the task never starts execution, it always hangs in the ‘pending’ status
Code that I’m using for the scheduler in thread below

  
  
Posted 3 days ago
Votes Newest

Answers 5


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?

  
  
Posted 3 days ago

Hi @<1706116294329241600:profile|MinuteMouse44> , is there any worker listening to the queue?

  
  
Posted 3 days ago

yes, if I manually put any task in this queue, it starts without problems

  
  
Posted 3 days ago

yes I see this tast in queue, but they just ‘pending’

  
  
Posted 2 days ago

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')
  
  
Posted 3 days ago
15 Views
5 Answers
3 days ago
2 days ago
Tags
Similar posts