Ben Gotow
e89975456b
Fix scenario where sync worker is re-assigned the same account before fully releasing it
2016-07-12 18:31:55 -07:00
Juan Tejada
413a77c323
Log unhandled errors in api and sync
2016-07-11 17:42:49 -07:00
Ben Gotow
74430dd80e
Merge branch 'master' of ssh://github.com/nylas/k2
2016-07-11 16:56:27 -07:00
Ben Gotow
492ac21bb6
Primitive account deletion via DELETE /account
2016-07-11 16:56:18 -07:00
Juan Tejada
2dc31cb576
Add number of syncing accounts to sync process manager heartbeat
2016-07-11 16:24:48 -07:00
Juan Tejada
960dbdeb8f
Update logger for sync process manager
...
- Log identity data always
2016-07-11 15:40:36 -07:00
Juan Tejada
dce872fac8
Adds bunyan for json logging on every package!
...
- Bunyan logs json output, and added a stream to send our logs to
cloudwatch
- Replaces /all/ instances of console.log. Turned eslint rule back on,
so we don't use console.log ever again.
- Added npm scripts to view pretty logs
2016-07-08 17:30:24 -07:00
Ben Gotow
8453985b1f
Change worker removal so it waits for sync to complete
2016-07-01 15:41:22 -07:00
Evan Morikawa
124f0a9579
Add sigterm
2016-06-29 14:19:04 -07:00
Ben Gotow
91887a6e11
Speed up sync by fetching preferred body block only
2016-06-27 16:11:36 -07:00
Jackie Luo
179f24449b
Refactor code and add test for threading
2016-06-27 14:52:05 -07:00
Ben Gotow
69e87cbf49
Gmail auth at http://localhost:5100/auth/gmail
2016-06-24 16:46:41 -07:00
Ben Gotow
09bb7874f8
Dashboard with a sweet background. Also realtime assignment / policy view.
2016-06-23 15:52:53 -07:00
Ben Gotow
8e692982bb
Remove concept of self-limiting workers, will use cloudwatch metrics collection to scale fleet instead of queue length
2016-06-23 12:02:57 -07:00
Ben Gotow
f7c647f7ba
Return syncs to unclaimed queue after CLAIM_DURATION, just because it's healthy
2016-06-23 11:45:33 -07:00
Ben Gotow
12d9db8dd9
Redis coordination of sync processes / assignment
2016-06-23 00:49:26 -07:00