juroVee commented on issue #18843:
URL: https://github.com/apache/airflow/issues/18843#issuecomment-961938154
@kaxil Hi, yesterday we've upgraded to 2.2.1, so I've tested it by deleting
DAG file during runtime:
```
...
[2021-11-05 14:15:12,459] {manager.py:1051} INFO - Finding 'running' jobs
without a recent heartbeat
[2021-11-05 14:15:12,459] {manager.py:1055} INFO - Failing jobs without
heartbeat after 2021-11-05 14:05:12.459285+00:00
Process ForkProcess-1:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/multiprocessing/process.py", line 315, in
_bootstrap
self.run()
File "/usr/local/lib/python3.9/multiprocessing/process.py", line 108, in
run
self._target(*self._args, **self._kwargs)
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/dag_processing/manager.py",
line 277, in _run_processor_manager
processor_manager.start()
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/dag_processing/manager.py",
line 510, in start
return self._run_parsing_loop()
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/dag_processing/manager.py",
line 583, in _run_parsing_loop
self.prepare_file_path_queue()
File
"/home/airflow/.local/lib/python3.9/site-packages/airflow/dag_processing/manager.py",
line 978, in prepare_file_path_queue
files_with_mtime[file_path] = os.path.getmtime(file_path)
File "/usr/local/lib/python3.9/genericpath.py", line 55, in getmtime
return os.stat(filename).st_mtime
FileNotFoundError: [Errno 2] No such file or directory: 'dagfile.py'
[2021-11-05 14:15:13,543] {manager.py:308} WARNING - DagFileProcessorManager
(PID=57) exited with exit code 1 - re-launching
[2021-11-05 14:15:13,550] {manager.py:163} INFO - Launched
DagFileProcessorManager with pid: 24817
[2021-11-05 14:15:13,561] {settings.py:52} INFO - Configured default
timezone Timezone('America/Chicago')
...
```
Scheduler survived - so it seems we are good here. Thank you!
--
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]