Call apoc.es in apoc.periodic.repeat not working

Hi, I am trying to call apoc.es.post in an apoc.periodic.repeat call like this:

CALL apoc.periodic.repeat("updateElastic",
'CALL apoc.es.put("localhost", "some-index", "_doc", "test-id", null,
{id: "test-id", text: "test"})
YIELD value 
RETURN value', 30)

I can see the call in the logs, but nothing is happening on elasticsearch. If I run the apoc.es.put outside of the apoc.periodic.repeat it works fine. Also if I run something else in repeat without apoc.es (like updating a node property in neo4j) it works fine. So it seems like this combination is not supported, or how could I debug more?

I am using neo4j 4.1.3 on neo4j desktop.