Apoc.periodic.repeat with node similarity

Hi,
I'm trying to use apoc.periodic.repeat to recalculate the similarity score everyday, but it doesn't seem to be working. My code works when I don't throw it in apoc though.

Could this be due to an incompatibility issue with apoc and the GDS library?

example:
step1:
CALL apoc.periodic.repeat('title', "
CALL gds.graph.drop('grapheme')
YIELD graphName, modificationTime
;
",606024);

step2:
CALL apoc.periodic.repeat('title', "

CALL gds.graph.create(
'grapheme',
'User',
{
RELATIONSHIP: {orientation: 'UNDIRECTED'}}
)
;
",606024);

I can include the rest of the code if needed.
Thank you!