Skip to content
Snippets Groups Projects
Commit 0628de74 authored by Qinusty's avatar Qinusty
Browse files

element.py: Remove redundant timed_activity

This removes the timed_activity for an element _push action. This is
unnecessary as the job is already being timed elsewhere.
parent 0e86492d
No related branches found
No related tags found
No related merge requests found
......@@ -1785,16 +1785,15 @@ class Element(Plugin):
self.warn("Not pushing tainted artifact.")
return False
display_key = self._get_brief_display_key()
with self.timed_activity("Pushing artifact {}".format(display_key)):
# Push all keys used for local commit
pushed = self.__artifacts.push(self, self.__get_cache_keys_for_commit())
if not pushed:
return False
# Push all keys used for local commit
pushed = self.__artifacts.push(self, self.__get_cache_keys_for_commit())
if not pushed:
return False
# Notify successful upload
self.info("Pushed artifact {}".format(display_key))
return True
# Notify successful upload
display_key = self._get_brief_display_key()
self.info("Pushed artifact {}".format(display_key))
return True
# _shell():
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment