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 2 months ago
Votes Newest

Answers 7


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

  
  
Posted 2 months ago

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

  
  
Posted 2 months ago

No 😞

  
  
Posted one month ago

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 2 months ago

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

  
  
Posted 2 months 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 2 months ago

@<1706116294329241600:profile|MinuteMouse44> Could you solve the issue?

  
  
Posted one month ago
118 Views
7 Answers
2 months ago
one month ago
Tags
Similar posts