day_planner 0.1.0.pre13 → 0.1.0.pre13.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fe0b67a0f2c0e7778c4a887f6f613006ae087279
4
- data.tar.gz: 70c202aa60f598592874b7b8f6c776bce4ecdbce
3
+ metadata.gz: 8c633428e3235dd6ccd41d385f3a3e2be4ad50dc
4
+ data.tar.gz: 7bef8683a5f7305b6833163078d7a8aa320aea47
5
5
  SHA512:
6
- metadata.gz: 38b3ff69e2cd8fe89f0ab7ebcb4d3516dcdc155b7839792c855c8eb93f5953b71b52cbed36ef34f3f4a5e92aa24732b53a9190fc768a94d72bbce5ee3f0e4c1b
7
- data.tar.gz: 03c1307bd2f011ecc445f7e979d80135d35c0fd26e1b7caf64762ac446e23b133304dc1ae6b75ae9dfa26d2faf2fdb414ee81f25894a8fea4a473392b5eb1754
6
+ metadata.gz: e8e2b4b2d08938aa508ba79de5cd726439975dba3ad09c70d91403788807ee21d746835f05af39b5cf759443b4123460133f8116dda0280fb1f26167120da31c
7
+ data.tar.gz: 84a3c37ad8aa2e7da0e4e469bb29ce16c61387ebdfb4db73f2a32cc93caeeb7d49d0bb1572451c01502c920187362a82f6ddafc57c31e6509cff982cf49b06d4
data/PLANS.md CHANGED
@@ -5,19 +5,24 @@ This is basically a gimme as long as we're already recording stuff in a database
5
5
  * Delete only anonymous tasks on initialize, don't delete anything with a persistent name and interval
6
6
  ** But do delete any task with an unfamiliar name or name, interval combo
7
7
  * Don't worry about task content changing. Fine, change it. We don't store that in a database anyway.
8
+ * Do delete any unfamiliar tasks (i.e. anything in day_planner_tasks that isn't listed in our schedule file)
8
9
  * Don't reinitialize persistent events, just keep them on schedule. This helps especially if e.g. dealing with a pricy API -- why pull more often than needed?
9
10
 
10
11
  ### Log each tasks's history ###
11
12
  HIGH PRIORITY: I want to be able to monitor the elaborate new scheduling algorithm appropriately. This needs to be optional, but it would be nice to have the ability to monitor at least how well the task adheres to the timeline.
13
+ * Optional generator task to create a table of task history whatnot? Check for it on initialize and then start writing to it if it's there.
14
+ * Read history, add method to calculate number of times task performed over timeframe.
12
15
 
13
16
  ### Attempt some degree of control with multi-process instances ###
14
17
  Not sure exactly how to do this.
15
18
  * Store a record of the scheduler's execution status in a database? Then use that to avoid it being unnecessarily run in multiple threads?
19
+ * Whichever process hits first grabs it. For Heroku compatibility, though, I don't think we can rely on that over long periods.
20
+ ** How about if other processes monitor for it at the long_heartbeat? Need to find way to determine if anyone's checking, though. I'm not sure how Heroku's dyno-restarting stuff works, but I don't know that we get an alarm when a vital dyno is going down.
16
21
  * Hell, even an optional "view scheduler status" page in the app. Why not?
17
22
 
18
23
  ### Some degree of DB independence ###
19
24
  This needs to wait until we have the multi-process thing down.
20
- * Set a separate interval for updating the DB, and in between just use in-memory stuff?
25
+ * Set a separate interval for updating the DB, and in between just use in-memory stuff? Call it the long_heartbeat.
21
26
  ** This probably would need to be done on some sort of basis of strict multiples, i.e. every 6th tick, update the database. Make sure that we can be okay with circumstances in which the DB is not up to date. (Tasks might resume unnecessarily soon, etc., but shit, do I care?)
22
27
  * The value of this is when the interval is quite low, at which point both the DB usage and the time that the queries take starts dominating the scene
23
28
 
@@ -3,7 +3,7 @@ module DayPlanner
3
3
  MINOR = 1
4
4
  TINY = 0
5
5
  PRE = "pre13"
6
- BUILD = nil
6
+ BUILD = 1
7
7
 
8
8
  VERSION = [MAJOR, MINOR, TINY, PRE, BUILD].compact.join(".")
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: day_planner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre13
4
+ version: 0.1.0.pre13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Siefert