Like you intuited, it wasn’t built to handle goals with anything other than date+rate end segments. Since people explicitly opt into the autodialer, I think it’s fine if I coerce the last segment to be date+rate on dial, as long as I include that as a known limitation.
The dialer function has been timing out, which is a good problem to have, though I’m a bit stumped as to how to solve it. Netlify functions time out at 10 seconds. I’ve been trying to get the main function to spawn child functions, one per user, but I’ve been having trouble with that, too, since the main function needs to wait until the ssl handshake completes before exiting, but the only way I know to do that is to wait for the child to respond… so not sure how to approach this.
What’s the intended functionality for goals that are less than 30 days old? Will it wait with the first autodial until the goal is 30 days old, or use the average of the shorter period, or …?
One thing I foresee being a potential pitfall (but maybe it’s already accounted for):
Enables autodialing and specifies the smallest [or largest] rate the autodialer will set for the goal, in terms of your goal’s current time unit.
Sometimes, when I change my slope, I also change my time unit.[1]
So when I go from “x per week” to “y per day” and the autodialer was set up with #autodialMin=z, where z refers to a weekly time unit–will the autodialer also convert z to a daily number or will it now force me to do at least “z per week”?
This is mostly because I somehow prefer certain numbers. Let’s say I want to go from “2 per week” to “3 per week”. In that case, I switch a bit between the time units and notice that “3 per week” is “0.42… per day”. And because I like the number four (and because a steeper slope is better), I actually commit to “0.44 per day”. ↩︎
On new-goal behavior, you guys are right, it does assume 0s before the start of the road. But in addition it also multiplies the difference by the percentage of a month that has elapsed. So if a goal is only 15 days old, it’ll only change the rate half as much as a straight average would dictate, even including 0’s before the start of the road. This is to avoid do-less goals from immediately getting dialed to zero / unit.
This hasn’t been working for me for the last few days - pressing ‘Force Run’ gives a 500 server error. Is that something wrong on my end or is it down?
@howtodowtle Yup! It respects future breaks. It only changes the slope of the last segment in your matrix (starting after the akrasia horizon if the last segment intersects it). So any future breaks are preserved.
I have a goal using the autodialer that has dialed itself down to zero, because there had been no data points added in the last thirty days. Which is fine and what I expected it to do. After I added a new data point I expected it would dial itself back up again, which didn’t happen, and I can see why not - it can’t tell the difference between the rate of zero it set itself and a rate of zero that I set as a break. So I guess I should set an #autodialMin=0.0something to keep it working.
Just documenting here in case it helps anyone else - or there’s something I’m missing that someone can let me know!
Huh, that’s interesting… the autodialer doesn’t treat 0 any different than any other rate. The reason it doesn’t mess with breaks is because it only modifies the last segment of the road, not because it identifies breaks based on rate… Perhaps you didn’t add enough data for the average rate to be different enough for the autodialer to make a change? Definitely want to make sure there isn’t a bug here…
Yes, I was going to contact you actually as changing the minimum to 0.01 hasn’t made the autodialer change the line except to change it to 0.01/week. The autodialer was working fine until it changed the line to be flat, and it’s picked up the new minimum I set.
There’s one datapoint, of 1, added in the last 30 days and the goal is set up weekly with autodial max of 1 and a min of 0.01 now (goal is this one). 1/30 days would be 0.033, in weeks that’d be 0.233 so I was expecting it to change the rate up to 0.23ish/week.