prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Inconsistent task run bar coloring

Open WillRaphaelson opened this issue 2 years ago • 1 comments

First check

  • [X] I added a descriptive title to this issue.
  • [X] I used the GitHub search to find a similar issue and didn't find it.
  • [X] I refreshed the page and this issue still occurred.
  • [X] I checked if this issue was specific to the browser I was using by testing with a different browser.

Bug summary

Task run bars at times display with gradients, at times with opacity, and at times with translucence.

image

image

Reproduction

This script will produce gradients

from time import sleep
import random
from prefect import flow, task


@task
def tree(time=0.5, dependencies=None):
    sleep(time)
    return random.random()


@flow
def my_flow():
    layers = 6
    trunk = tree.submit(time=1)
    for l in range(layers):
        t = trunk
        size = 10 * (layers - l)
        layer_tasks = []
        for _ in range(size):
            time = 8
            t = tree.submit(time=time - l, dependencies=trunk)
            layer_tasks.append(t)
        trunk = tree.submit(dependencies=layer_tasks)


my_flow()

Error

see summary

Browsers

  • [X] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Edge

Prefect version

No response

Additional context

No response

WillRaphaelson avatar Jan 02 '24 18:01 WillRaphaelson

Happens in all browsers in all my flows as well.

markbaas avatar Jan 15 '24 14:01 markbaas

I believe this should be fixed now by this PR https://github.com/PrefectHQ/graphs/pull/460

I'm going to close this issue but please comment or reopen if you're still experiencing this.

pleek91 avatar Apr 10 '24 19:04 pleek91