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, Potentially Very Silly And Simple Question, But I'M Trying To Run The

Hi, potentially very silly and simple question, but I'm trying to run the cleanup_service.py in my services queue. However, it is not deleting any task but printing this line instead: WARNING:root:Could not delete Task ID=742e93cdfeac4f1c9395f0254fc443320, 'Task' object has no attribute 'delete' . I am kind of confused as to where to search. I tried numerous things - adding CLEARML_API_ACCESS_KEY and CLEARML_API_SECRET_KEY , but it doesn't change anything. It also doesn't seem to be a connection issue, since it can originally find the task IDs, so a connection of some sorts is going on. However, when deleting it fails with this strange error message. I tried searching github + so + this workspace but I cannot find an answer. Does anyone have a clue?

  
  
Posted 4 months ago
Votes Newest

Answers 5


You mean that created the task? I probably should have added to the problem description that I'm able to delete the task manually, also using the SDK.
I'll elaborate on the setup.
I'm deploying server in the recommended way with very minor changes. The relevant portions of the yamls:

 agent-services:
    networks:
      - backend
    container_name: clearml-agent-services
    image: allegroai/clearml-agent-services:latest
    deploy:
      restart_policy:
        condition: on-failure
    privileged: true
    environment:
      CLEARML_HOST_IP: ${CLEARML_HOST_IP}
      CLEARML_WEB_HOST: ${CLEARML_WEB_HOST:-}
      CLEARML_API_HOST: 

      CLEARML_FILES_HOST: ${CLEARML_FILES_HOST:-}
      CLEARML_API_ACCESS_KEY: ${CLEARML_AGENT_ACCESS_KEY:-$CLEARML_API_ACCESS_KEY}
      CLEARML_API_SECRET_KEY: ${CLEARML_AGENT_SECRET_KEY:-$CLEARML_API_SECRET_KEY}
      CLEARML_AGENT_GIT_USER: ${CLEARML_AGENT_GIT_USER}
      CLEARML_AGENT_GIT_PASS: ${CLEARML_AGENT_GIT_PASS}
      CLEARML_AGENT_UPDATE_VERSION: ${CLEARML_AGENT_UPDATE_VERSION:->=0.17.0}
      CLEARML_AGENT_DEFAULT_BASE_DOCKER: "ubuntu:18.04"
      AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID:-}
      AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY:-}
      AWS_DEFAULT_REGION: ${AWS_DEFAULT_REGION:-}
      AZURE_STORAGE_ACCOUNT: ${AZURE_STORAGE_ACCOUNT:-}
      AZURE_STORAGE_KEY: ${AZURE_STORAGE_KEY:-}
      GOOGLE_APPLICATION_CREDENTIALS: ${GOOGLE_APPLICATION_CREDENTIALS:-}
      CLEARML_WORKER_ID: "clearml-services"
      CLEARML_AGENT_DOCKER_HOST_MOUNT: "/opt/clearml/agent:/root/.clearml"
      SHUTDOWN_IF_NO_ACCESS_KEY: 1
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/clearml/agent:/root/.clearml
    depends_on:
      - apiserver
    entrypoint: >
      bash -c "curl --retry 10 --retry-delay 10 --retry-connrefused '
' && /usr/agent/entrypoint.sh"

Then I extend this file with this definition to add a fileshare:

 agent-services:
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /opt/clearml/agent:/root/.clearml
      - /mnt/models/clearml_fileserver:/mnt/fileserver

The associated env file looks like this:

CLEARML_AGENT_GIT_USER=michel.kok@domain.com
CLEARML_AGENT_GIT_PASS=#secretpass
CLEARML_AGENT_ACCESS_KEY=KS6Z0UYO139dsf9KWT9NVCNBGUCZIQ
CLEARML_AGENT_SECRET_KEY=ujnWt81euiPcuFpMZxG_XrpFG5sw_dfa-Fv6oOw9-Vy4-bdnGdYqQtpGoDlprkucQ18
CLEARML_HOST_IP=

CLEARML_FILES_HOST=

CLEARML_API_HOST=

CLEARML_API_ACCESS_KEY=B0HTQFOXJMSOGRY6WfJUP73R1EA6SS
CLEARML_API_SECRET_KEY=uzaaIaEdAVH2Wf-ZLAC6zGoUNFuuDRyfdawS4fgiBr_GkULkxd3Ow15sDNGo3KOWnGc

I'm assuming the agent service runs an up-to-date version of the SDK automatically, shouldn't it?

  
  
Posted 4 months ago

MagnificentBear85 this seems like some SDK usage issue - the code complains the Task object has no delete() method, although clearml.Task (which is what the code uses) does have this method defined - which SDK version are you using? Also, it might be possible you're redefining the Task class by mistake?

  
  
Posted 4 months ago

Does this help in any way SuccessfulKoala55 ? Should I provide something else instead?

  
  
Posted 4 months ago

Hi CostlyOstrich36 - I'm using WebApp: 1.16.2-502 • Server: 1.16.2-502 • API: 2.30.

  
  
Posted 4 months ago

Hi MagnificentBear85 , what version of clearml are you using?

  
  
Posted 4 months ago
343 Views
5 Answers
4 months ago
4 months ago
Tags