what are the exit codes for workers and what do they mean?
--
You received this message because you are subscribed to the Google Groups "Luigi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to luigi-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# Class that logs the processing time of each task
class SuperLuigiTask(luigi.Config, luigi.Task, object):
@luigi.Task.event_handler(luigi.Event.FAILURE)
def exit_message(self, exception):
logger.info(exception)
sys.exit(luigi.retcodes.retcode().unhandled_exception)
medikond.desktop% /apollo/bin/env -e GyroServiceEnhancedClient /apollo/env/GyroServiceEnhancedClient/bin/python2.7 -m luigi --module datalytics_luigi_druid_workflow DruidSpecFileCreation --local-scheduler && echo $?
DEBUG: Checking if DruidSpecFileCreation() is complete
INFO: Informed scheduler that task DruidSpecFileCreation() has status PENDING
INFO: Done scheduling tasks
INFO: Running Worker with 1 processes
DEBUG: Asking scheduler for work...
DEBUG: Pending tasks: 1
INFO: [pid 4313] Worker Worker(salt=610339599, workers=1, host=medikond.desktop.com, username=medikond, pid=4313) running DruidSpecFileCreation()
INFO: Modifying the spec file ad3_index_task_template.json
ERROR: [pid 4313] Worker Worker(salt=610339599, workers=1, host=medikond.desktop.com, username=medikond, pid=4313) failed DruidSpecFileCreation()
Traceback (most recent call last):
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/site-packages/luigi/worker.py", line 162, in run
new_deps = self._run_get_new_deps()
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/site-packages/luigi/worker.py", line 113, in _run_get_new_deps
task_gen = self.task.run()
File "datalytics_luigi_druid_workflow.py", line 108, in run
self.json_index_generate(self.dlp.json_index_input)
File "datalytics_luigi_druid_workflow.py", line 95, in json_index_generate
json_data = json.load(new_file, object_pairs_hook=OrderedDict)
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/json/__init__.py", line 290, in load
**kw)
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/json/__init__.py", line 351, in loads
return cls(encoding=encoding, **kw).decode(s)
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
INFO: No JSON object could be decoded
ERROR: Error in event callback for 'event.core.failure'
Traceback (most recent call last):
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/site-packages/luigi/task.py", line 155, in trigger_event
callback(*args, **kwargs)
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/site-packages/datalytics_luigi_util/datalytics_luigi_super.py", line 36, in exit_message
sys.exit(luigi.retcodes.retcode().unhandled_exception)
SystemExit: 4
INFO: Skipping error email. Set `error-email` in the `core` section of the luigi config file or override `owner_email`in the task to receive error emails.
DEBUG: 1 running tasks, waiting for next task to finish
INFO: Informed scheduler that task DruidSpecFileCreation() has status FAILED
DEBUG: Asking scheduler for work...
INFO: Done
INFO: There are no more tasks to run at this time
INFO: Worker Worker(salt=610339599, workers=1, host=medikond.desktop.com, username=medikond, pid=4313) was stopped. Shutting down Keep-Alive thread
INFO:
===== Luigi Execution Summary =====
Scheduled 1 tasks of which:
* 1 failed:
- 1 DruidSpecFileCreation()
This progress looks :( because there were failed tasks
===== Luigi Execution Summary =====
0
DEBUG: Checking if DruidHadoopIndexingHourly(job_start_date=2016-06-21, job_start_hour=20) is complete
DEBUG: Hash 654a3d8a67a6376988eecf60f3f9f5ba corresponds to task DruidHadoopIndexingHourly(job_start_date=2016-06-21, job_start_hour=20)
WARNING: Will not schedule DruidHadoopIndexingHourly(job_start_date=2016-06-21, job_start_hour=20) or any dependencies due to error in deps() method:
Traceback (most recent call last):
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/site-packages/luigi/worker.py", line 588, in _add
deps = task.deps()
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/site-packages/luigi/contrib/hadoop.py", line 710, in deps
return luigi.task.flatten(self.requires_hadoop()) + luigi.task.flatten(self.requires_local())
File "/apollo/env/GyroServiceEnhancedClient/lib/python2.7/site-packages/luigi/contrib/hadoop.py", line 700, in requires_hadoop
return self.requires() # default impl
File "datalytics_luigi_druid_workflow.py", line 122, in requires
return [DruidSpecFileCreation(job_start_date=self.job_start_date, job_start_hour=self.start_hour(), job_end_hour=self.end_hour(), engagement_output_path=self.dist_copy_dest())]
File "datalytics_luigi_druid_workflow.py", line 97, in dist_copy_dest
return '-'.join([self.engagement_output_path, random_string, self.job_start_date(), self.start_hour()])
TypeError: 'datetime.date' object is not callable
INFO: Skipping error email. Set `error-email` in the `core` section of the luigi config file or override `owner_email`in the task to receive error emails.
INFO: Done scheduling tasks
INFO: Running Worker with 1 processes
DEBUG: Asking scheduler for work...
INFO: Done
INFO: There are no more tasks to run at this time
INFO: Worker Worker(salt=985179584, workers=1, host=medikond.desktop.com, username=medikond, pid=3918) was stopped. Shutting down Keep-Alive thread
INFO:
===== Luigi Execution Summary =====
Did not schedule any tasks
===== Luigi Execution Summary =====