You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/08/02 03:04:45 UTC

[GitHub] [airflow] allenhaozi opened a new issue, #25455: Questions about Variable Settings

allenhaozi opened a new issue, #25455:
URL: https://github.com/apache/airflow/issues/25455

   ### Apache Airflow version
   
   2.2.5
   
   ### What happened
   
   I use a Variable to dynamically set the number of a task, and the code is as follows
   ```python
       task_num_str = Variable.get("simulate_task_num", "10")
       simulate_task_num = int(task_num_str)
   
       for index in range(simulate_task_num):
           tmp = gen_k8s_pod_operator("simulate", index)
           t1 >> t2 >> tmp >> t4 >> t5
   ```
   But I found that if I changed the value when the last instance was running
   You will find that it affects instances that are already running
   Is this logic by Design?
   
   
   
   ### What you think should happen instead
   
   _No response_
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"  CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed issue #25455: Questions about Variable Settings

Posted by GitBox <gi...@apache.org>.
potiuk closed issue #25455: Questions about Variable Settings
URL: https://github.com/apache/airflow/issues/25455


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org