Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def emit_magic_execution_start_event(self, magic_name, language, magic_guid):
self._verify_language_ok(language)
time_stamp = self.get_utc_date_time()
event_name = constants.MAGIC_EXECUTION_START_EVENT
kwargs_list = [(EVENT_NAME, event_name),
(TIMESTAMP, time_stamp),
(constants.MAGIC_NAME, magic_name),
(constants.LIVY_KIND, language),
(constants.MAGIC_GUID, magic_guid)]
self.send_to_handler(kwargs_list)