def record_event(self, event: Event) -> None:
from polyaxon.celery_api import celery_app<EOL>from polyaxon.settings import EventsCeleryTasks<EOL>if not event.ref_id:<EOL><INDENT>event.ref_id = self.get_ref_id()<EOL><DEDENT>serialized_event = event.serialize(dumps=False,<EOL>include_actor_name=True,<EOL>include_instance_info=True)<EOL>celery_app.send_task(EventsCeleryTasks.EVENTS_TRACK, kwargs={'<STR_LIT>': serialized_event})<EOL>celery_app.send_task(EventsCeleryTasks.EVENTS_LOG, kwargs={'<STR_LIT>': serialized_event})<EOL>celery_app.send_task(EventsCeleryTasks.EVENTS_NOTIFY, kwargs={'<STR_LIT>': serialized_event})<EOL>serialized_event['<STR_LIT>'] = event.instance<EOL>self.executor.record(event_type=event.event_type, event_data=serialized_event)<EOL>
Record the event async.