You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a boilerplate code where I raise an Exception when a tmp-file is being created. As a result of this we get the event 1 had failed dependencies. Having had on_failure function for ProcessData I expected that data.txt and data_tmp.txt have to be removed. But on_failure function is not triggered and the file data.txt remains in a folder. How can I handle the event had failed dependencies properly?
DEBUG: Checking if ProcessData(input_path=data.txt, input_tmp_path=data_tmp.txt, output_path=processed_data.txt) is complete
DEBUG: Checking if GenerateTmpData(output_path=data_tmp.txt) is complete
DEBUG: Checking if GenerateData(output_path=data.txt) is complete
INFO: Informed scheduler that task ProcessData_data_txt_data_tmp_txt_processed_data_t_ec6640af99 has status PENDING
INFO: Informed scheduler that task GenerateData_data_txt_1287d398ef has status PENDING
INFO: Informed scheduler that task GenerateTmpData_data_tmp_txt_941f24e4a7 has status PENDING
INFO: Done scheduling tasks
INFO: Running Worker with 1 processes
DEBUG: Asking scheduler for work...
DEBUG: Pending tasks: 3
INFO: [pid 763] Worker Worker(salt=208102894, workers=1, host=8b0c89a2a184, username=root, pid=763) running GenerateData(output_path=data.txt)
INFO: [pid 763] Worker Worker(salt=208102894, workers=1, host=8b0c89a2a184, username=root, pid=763) done GenerateData(output_path=data.txt)
DEBUG: 1 running tasks, waiting for next task to finish
INFO: Informed scheduler that task GenerateData_data_txt_1287d398ef has status DONE
DEBUG: Asking scheduler for work...
DEBUG: Pending tasks: 2
INFO: [pid 763] Worker Worker(salt=208102894, workers=1, host=8b0c89a2a184, username=root, pid=763) running GenerateTmpData(output_path=data_tmp.txt)
ERROR: [pid 763] Worker Worker(salt=208102894, workers=1, host=8b0c89a2a184, username=root, pid=763) failed GenerateTmpData(output_path=data_tmp.txt)
Traceback (most recent call last):
File "/app/env/lib/python3.5/site-packages/luigi/worker.py", line 199, in run
new_deps = self._run_get_new_deps()
File "/app/env/lib/python3.5/site-packages/luigi/worker.py", line 141, in _run_get_new_deps
task_gen = self.task.run()
File "test.py", line 25, in run
raise BaseException("Simulated error in GenerateTmpData")
BaseException: Simulated error in GenerateTmpData
DEBUG: 1 running tasks, waiting for next task to finish
INFO: Informed scheduler that task GenerateTmpData_data_tmp_txt_941f24e4a7 has status FAILED
DEBUG: Asking scheduler for work...
DEBUG: Done
DEBUG: There are no more tasks to run at this time
DEBUG: There are 2 pending tasks possibly being run by other workers
DEBUG: There are 2 pending tasks unique to this worker
DEBUG: There are 2 pending tasks last scheduled by this worker
INFO: Worker Worker(salt=208102894, workers=1, host=8b0c89a2a184, username=root, pid=763) was stopped. Shutting down Keep-Alive thread
INFO:
===== Luigi Execution Summary =====
Scheduled 3 tasks of which:
* 1 ran successfully:
- 1 GenerateData(output_path=data.txt)
* 1 failed:
- 1 GenerateTmpData(output_path=data_tmp.txt)
* 1 were left pending, among these:
* 1 had failed dependencies:
- 1 ProcessData(input_path=data.txt, input_tmp_path=data_tmp.txt, output_path=processed_data.txt)
This progress looks :( because there were failed tasks
===== Luigi Execution Summary =====
The text was updated successfully, but these errors were encountered:
I have a boilerplate code where I raise an Exception when a tmp-file is being created. As a result of this we get the event 1 had failed dependencies. Having had on_failure function for ProcessData I expected that data.txt and data_tmp.txt have to be removed. But on_failure function is not triggered and the file data.txt remains in a folder. How can I handle the event had failed dependencies properly?
Code:
Run as:
Output:
The text was updated successfully, but these errors were encountered: