diff --git a/clearml/automation/job.py b/clearml/automation/job.py index 30c8038e..aee284ef 100644 --- a/clearml/automation/job.py +++ b/clearml/automation/job.py @@ -76,7 +76,7 @@ class ClearmlJob(object): # check cached task self._is_cached_task = False task_hash = None - if allow_caching and not disable_clone_task or not self.task: + if allow_caching and not disable_clone_task and not self.task: # look for a cached copy of the Task # get parameters + task_overrides + as dict and hash it. task_hash = self._create_task_hash(