I notice in the logging for my cron job there’s a variable iteration
that is present in the output. Is there any way to reference that as a environment variable?
Hi Rob,
At present the iteration count is not exposed as an environment variable to your job. You can see the handling of the cronIteration counter here in the public Supercronic repository.
Can you expand on what you would be hoping to achieve by referring to the iteration counter? The behavior is not predictable and depending on how you handle overlapping jobs the counter may skip one or more. If your use case requires a predictable iterating counter, it may be better for you to implement this outside the App.