Skip to content

Commit 1c86a46

Browse files
committed
Log dra_ready event
1 parent 0466043 commit 1c86a46

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hpc_provisioner/src/hpc_provisioner/handlers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@
3838
logger = logging.getLogger("hpc-resource-provisioner")
3939

4040

41+
def dra_ready_handler(event, _context=None):
42+
"""
43+
1. Retrieve clusters which use this FS/DRA
44+
2. For each of them: construct an event and call pcluster_do_create_handler
45+
"""
46+
logger.debug(f"event: {event}, _context: {_context}")
47+
48+
4149
def pcluster_do_create_handler(event, _context=None):
4250
logger.debug(f"event: {event}, _context: {_context}")
4351
cluster = Cluster.from_dict(event["cluster"])

0 commit comments

Comments
 (0)