-
Notifications
You must be signed in to change notification settings - Fork 0
/
my_feed_index_bg.job
27 lines (21 loc) · 894 Bytes
/
my_feed_index_bg.job
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/env bash
# indexes local data and publishes it to my feed
# https://github.com/seanbreckenridge/my_feed
# shellcheck disable=SC1091
# incase it needs to prompt me for something, skip that
# feed item for now -- I run this in
# https://sean.fish/d/housekeeping?dark as well,
# so it'll prompt me when I next do that
export MY_FEED_BG=1
wait-for-internet -q --timeout "${WFI_TIMEOUT:-10}" || exit 0
evry 3 hours -my-feed-index-bg && {
printlog 'bg-feed-index:running my_feed index...'
with-secrets "${REPOS}/my_feed/index" || send-error 'Error updating my_feed'
}
# check recently updated data every 15 minutes to push updates
evry 15 minutes -my-feed-live-update && {
with-secrets feed_live_update --remote-base 'https://sean.fish/feed_api/data/' \
--trakt-username purplepinapples \
--chessdotcom-username seanbreckenridge \
--listenbrainz-username seanbreckenridge
}