leiguorui opened a new issue #21721:
URL: https://github.com/apache/airflow/issues/21721


   ### Apache Airflow version
   
   2.2.3 (latest released)
   
   ### What happened
   
   Full error message:
   
   ``` 
   [2022-02-21, 08:17:01 UTC] {standard_task_runner.py:52} INFO - Started 
process 274610 to run task
   [2022-02-21, 08:17:01 UTC] {standard_task_runner.py:76} INFO - Running: 
['airflow', 'tasks', 'run', 'micro_monitor_overstock', 'check_runs', 
'scheduled__2022-02-21T00:16:00+00:00', '--job-id', '234250', '--raw', 
'--subdir', 'DAGS_FOLDER/off/micro_monitor_overstock.py', '--cfg-path', 
'/tmp/tmpv201_r46', '--error-file', '/tmp/tmp0ogx9rb3']
   [2022-02-21, 08:17:01 UTC] {standard_task_runner.py:77} INFO - Job 234250: 
Subtask check_runs
   [2022-02-21, 08:17:01 UTC] {standard_task_runner.py:89} ERROR - Failed to 
execute job 234250 for task check_runs
   Traceback (most recent call last):
     File 
"/Data1/task/anaconda3/lib/python3.8/site-packages/airflow/task/task_runner/standard_task_runner.py",
 line 85, in _start_by_fork
       args.func(args, dag=self.dag)
     File 
"/Data1/task/anaconda3/lib/python3.8/site-packages/airflow/cli/cli_parser.py", 
line 48, in command
       return func(*args, **kwargs)
     File 
"/Data1/task/anaconda3/lib/python3.8/site-packages/airflow/utils/cli.py", line 
92, in wrapper
       return f(*args, **kwargs)
     File 
"/Data1/task/anaconda3/lib/python3.8/site-packages/airflow/cli/commands/task_command.py",
 line 261, in task_run
       with open(args.cfg_path) as conf_file:
   FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpv201_r46'
   ``` 
   
   ### What you expected to happen
   
   Tempfile to be there and DAG not failing.
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   CentOS release 6.6 (Final)
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-celery==1.0.0
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   pip install 'apache-airflow[celery,mysql]' -U
   
   ### Anything else
   
   This task is scheduled every minite.  The FileNotFoundError happened every 
day.
   
   ### Are you willing to submit PR?
   
   - [ ] 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: [email protected]

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


Reply via email to