Sorry, I’ve been playing catch-up with a few other projects and haven’t been able to answer sooner. There have been reports of tasks.lastSuccess()
not working:
- Task.lastSuccess does not return last successful task run time · Issue #3430 · influxdata/flux · GitHub
- Task.lastSuccess does not return last successful task run time #3430 · Issue #5498 · influxdata/flux · GitHub
I have also duplicated the behavior locally. I’m guessing this has something to do on the InfluxDB side rather than the Flux side and there haven’t been any issues created about it on the InfluxDB repo, so I went ahead and created one: Flux tasks.lastSuccess function does not return the last successful runtime of a task · Issue #25384 · influxdata/influxdb · GitHub
Hopefully this will get resolved soon.