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
I Tried Using

I tried using clearml.automaton.TriggerScheduler in the following way:

"""Add a trigger to test the model once it is published."""

from clearml.automation import TriggerScheduler

controller = TriggerScheduler(pooling_frequency_minutes=3, sync_frequency_minutes=15)

controller.add_model_trigger(
    schedule_task_id="09289bb95bf7481c8028228c02da53f1",
    schedule_queue="default",
    name="trigger__test_model_on_publish",
    add_tag=True,
    task_overrides={"Args/model_id": "${model.id}"},
    trigger_on_publish=True,
)


print("Starting Remotely.")

controller.start_remotely(queue="services")

print("Ending program.")

However the agent service runs for a long time but doesn't pick trigger a new task with the published models.

Why?

  
  
Posted 21 days ago
Votes Newest

Answers 5


Hi @<1523708920831414272:profile|SuperficialDolphin93> , does it run fine if you use a regular worker?

  
  
Posted 21 days ago

Hi @<1523701070390366208:profile|CostlyOstrich36>
Unfortunately if I run it from a regular worker it still does not seem to work. The script takes about 10 seconds to run on my machine (locally), then quits. In the Webserver I see the Scheduler Task appear running in the DevOps project, but publishing models does not trigger the requested Test task.

  
  
Posted 20 days ago

Hi @<1523708920831414272:profile|SuperficialDolphin93> ! What if you do just controller.start() (to start it locally). The task should not quit in this case.

  
  
Posted 20 days ago

I’ll try and let you know, thanks!

  
  
Posted 21 days ago

It just gets stuck in this screen and no published models are triggering a base task clone.
What am I missing?
image

  
  
Posted 21 days ago
63 Views
5 Answers
21 days ago
19 days ago
Tags