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 Everyone! I Use Clearml In Airflow Task. When I'M Trying To Init A Clearml Task, It Dies Without Errors In Logs. The Credentials Are Correct. Airflow Works On My Local Machine. The Code Works Well When I Run It From The Terminal But Fails When I Run It

Hi everyone! I use ClearML in Airflow Task. When I'm trying to init a ClearML Task, it dies without errors in logs. The credentials are correct. Airflow works on my local machine. The code works well when I run it from the terminal but fails when I run it through Airflow DAG.

Maybe somebody knows how to fix that?
def configure_clearml(self) -> Tuple[Task, Logger]: logging.info('Initializing ClearML') clearml_config = self.vars.get_clearml() logging.info(f'ClearML config: {clearml_config}') # TODO: remove Task.set_credentials( api_host=clearml_config['api_server'], web_host=clearml_config['web_server'], files_host=clearml_config['files_host'], key=clearml_config['api_access_key'], secret=clearml_config['api_secret_key'], ) now = self.logical_date.strftime(DT_FORMAT) task = Task.init(project_name='sheldon', task_name=f'revenue {now}') clearml_logger = task.get_logger() return task, clearml_logger

  
  
Posted 2 years ago
Votes Newest

Answers 3


I'm not exactly sure but it seems this is an Airflow error when a library isn't working.
Can you try
os.environ["no_proxy"]="*"I've found this both here: https://github.com/apache/airflow/discussions/24463#discussioncomment-4211269
and here: https://stackoverflow.com/a/73983599

  
  
Posted 2 years ago

TimelyMouse69 It works, thank you! 🎉

  
  
Posted 2 years ago

Happy to help!

  
  
Posted 2 years ago
1K Views
3 Answers
2 years ago
one year ago
Tags
Similar posts