Run "apoc.periodic.commit" inside "apoc.periodic.repeat"

Hi,

I would like to run every x second script that uses 'apoc.periodic.commit'. The natural way for me would be to put it inside 'apoc.periodic.repeat'.
But: If I do something like this:

CALL apoc.periodic.repeat(
"test",
"
CALL apoc.periodic.commit(
'
CREATE (a:TEST)
WITH a LIMIT 1
RETURN 0;
'
)
",
1
);

the Neo4j start executing it,.. never finish (It doesn't insert Node TEST) and if I stop the periodic and registrate new one (one without 'apoc.periodic.commit', that I know it works), the new one doesn't run either.. I need to restart the Neo4j to work again.

Any suggestion on where I am doing wrong?

Hi @MarkoZadravec !

Which APOC version are you using? I tried your query on Neo4J 4.4.4 with APOC 4.4.0.6 and it worked just fine.

Bennu