You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And a probe will sent to the user in 15m, with 0 retries. Can be done through scheduled jobs.
TODO:
user.probe_settings should have max_retries & wait_time_in_minutes(i.e. time to wait for a reply after which the probe is retried or is marked as unavailable)
When creating a probe use the users user.probe_settings to set max_retries & wait_time_in_minutes - they should also be fields in probe.
Add scheduledAtcolumn to jobs table.
When user sends sms command, create a job added to the scheduledqueue & set scheduledAt(i.e. when the job should be run)
Create a new worker that only pulls jobs from the scheduledqueue & move them to the enqueuedqueue if scheduledAt <= time.Now()
The scheduled job should have ["probe_max_retries"] arg set to 0. So after the user's dynamic probe triggers, if they don't reply, immediately mark as unavailable & contact emergency contact.
A user can text the
server
something like:And a probe will sent to the user in
15m
, with0
retries. Can be done throughscheduled
jobs.TODO:
user.probe_settings
should havemax_retries
&wait_time_in_minutes
(i.e. time to wait for a reply after which the probe is retried or is marked asunavailable
)user.probe_settings
to setmax_retries
&wait_time_in_minutes
- they should also be fields inprobe
.scheduledAt
column
to jobs table.scheduled
queue
& setscheduledAt
(i.e. when the job should be run)worker
that only pulls jobs from thescheduled
queue
& move them to theenqueued
queue
ifscheduledAt
<=time.Now()
["probe_max_retries"]
arg set to0
. So after the user's dynamic probe triggers, if they don't reply, immediately mark as unavailable & contact emergency contact.Enhancement:
kronus/server/pbscheduler/pbscheduler.go
Lines 126 to 138 in 14355ab
Note:
The text was updated successfully, but these errors were encountered: