tirkarthi opened a new pull request, #32822:
URL: https://github.com/apache/airflow/pull/32822

   closes: #31949
   related: #31949
   
   The value from graph_data API is "fill:#ffee00;" . Please let me know if 
there is a simpler way to parse this instead of string manipulation. Sample dag 
with screenshot
   
   ```python
   from datetime import datetime
   from airflow.decorators import dag, task
   from airflow.models.baseoperator import BaseOperator
   from airflow.operators.bash import BashOperator
   
   
   class HelloOperator(BaseOperator):
       ui_color = "#ffee00"
       ui_fgcolor = "#00ff04"
       custom_operator_name = "Howdy"
   
   
   @dag(dag_id="gh32757", start_date=datetime(2023, 1, 1), catchup=False)
   def mydag():
   
       @task
       def input(i):
           return i
   
       @task
       def output(i):
           return i
   
       bash = BashOperator(task_id="t1", bash_command="echo hello")
       hello = HelloOperator(task_id="t2")
       bash2 = BashOperator(task_id="t3", bash_command="echo bye")
   
       inputs = input.expand(i=[1, 2])
       output.expand(i=inputs)
       bash >> hello
       bash2
   
   mydag()
   ```
   
   
![image](https://github.com/apache/airflow/assets/3972343/d072af96-5940-4906-94af-0abd4c33fe31)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to