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?
However, waiting for the fix, you could use this bad but working workaround,
that is, by adding create (n:ToDelete) delete n to return nothing at the end of the query.
CALL apoc.periodic.repeat('myJob', "CALL gds.graph.drop('grapheme')
yield graphName with graphName as ignore // just to concat drop with create
CALL gds.graph.create(
'grapheme',
'User',
{RELATIONSHIP: {orientation: 'UNDIRECTED'}}) yield graphName
create (n:ToDelete) delete n // to return nothing
", 86400000)
Note that i joined drop and create into a single statement to avoid potential errors (drop before creation and vice-versa).