This repository was archived by the owner on May 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -421,16 +421,8 @@ def should_write_to_storage(self) -> bool:
421421 """
422422 This only applies to the flare field.
423423 Flare is used to draw static graphs (see GraphHandler view in api) and can be large.
424- The majority of flare graphs are used in pr comments, so we keep the (maybe large) flare available while
425- the pull is OPEN. If the pull is not OPEN, we dump the flare to save space. We will recreate it on
426- the fly if it is needed for a non-OPEN pull (see GraphHandler view in api).
427424 Flare cleanup is handled by FlareCleanupTask in worker.
428425 """
429- if self .state != PullStates .OPEN .value :
430- # while a pull is OPEN, we check whether to write_to_storage
431- # when a pull is no longer OPEN, we no longer want the flare in storage.
432- # The nightly cron job cleans up the value in storage (see FlareCleanupTask in worker)
433- return False
434426 if self .repository is None or self .repository .author is None :
435427 return False
436428 is_codecov_repo = self .repository .author .username == "codecov"
You can’t perform that action at this time.
0 commit comments