Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-06-2022 11:32 PM
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?
07-07-2022 03:31 AM
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
All the sessions of the conference are now available online