Naz
014fafbafb
Published new versions
...
- @tryghost/adapter-manager@0.2.29
- @tryghost/api-version-compatibility-service@0.1.0
- @tryghost/bootstrap-socket@0.2.18
- @tryghost/config-url-helpers@0.1.6
- @tryghost/constants@1.0.3
- @tryghost/database-info@0.3.2
- @tryghost/image-transform@1.0.30
- @tryghost/job-manager@0.8.22
- @tryghost/limit-service@1.0.11
- @tryghost/minifier@0.1.13
- @tryghost/moleculer-service-from-class@0.2.24
- @tryghost/mw-api-version-mismatch@0.1.0
- @tryghost/mw-error-handler@0.2.1
- @tryghost/mw-session-from-token@0.1.29
- @tryghost/mw-update-user-last-seen@0.1.4
- @tryghost/package-json@1.0.19
- @tryghost/pretty-cli@1.2.25
- @tryghost/promise@0.1.16
- @tryghost/release-utils@0.7.13
- @tryghost/security@0.2.16
- @tryghost/session-service@0.1.39
- @tryghost/settings-path-manager@0.1.5
- @tryghost/vhost-middleware@1.0.23
- @tryghost/zip@1.1.23
2022-04-21 20:58:17 +08:00
Renovate Bot
430608c9c3
Update dependency c8 to v7.11.2
2022-04-20 18:23:57 +00:00
Renovate Bot
65b91e4895
Update dependency @sinonjs/fake-timers to v9.1.2
2022-04-13 10:09:23 +00:00
Sam Lord
432ebed27c
Published new versions
...
- @tryghost/job-manager@0.8.21
- @tryghost/mw-error-handler@0.1.4
2022-03-11 10:48:00 +00:00
Renovate Bot
10e29837e5
Update dependency @sinonjs/fake-timers to v9.1.1
2022-03-07 01:24:01 +00:00
Daniel Lockyer
3324ffc788
Published new versions
...
- @tryghost/adapter-manager@0.2.28
- @tryghost/bootstrap-socket@0.2.17
- @tryghost/config-url-helpers@0.1.5
- @tryghost/constants@1.0.2
- @tryghost/database-info@0.2.0
- @tryghost/image-transform@1.0.28
- @tryghost/job-manager@0.8.20
- @tryghost/limit-service@1.0.10
- @tryghost/minifier@0.1.11
- @tryghost/moleculer-service-from-class@0.2.23
- @tryghost/mw-error-handler@0.1.3
- @tryghost/mw-session-from-token@0.1.28
- @tryghost/mw-update-user-last-seen@0.1.3
- @tryghost/package-json@1.0.16
- @tryghost/pretty-cli@1.2.24
- @tryghost/promise@0.1.15
- @tryghost/release-utils@0.7.12
- @tryghost/security@0.2.15
- @tryghost/session-service@0.1.38
- @tryghost/settings-path-manager@0.1.4
- @tryghost/vhost-middleware@1.0.22
- @tryghost/zip@1.1.20
2022-03-01 08:40:52 +01:00
Daniel Lockyer
3259994e4f
Added --all
flag to c8 commands
...
refs https://github.com/TryGhost/Toolbox/issues/203
- without `--all`, c8 will ignore files that aren't covered in tests, so
they won't pull the test coverage down
- this means we have artificially high coverage scores
- this commit adds `--all` where previously missing
2022-02-21 12:50:26 +01:00
Daniel Lockyer
cfb1ded0d0
Published new versions
...
- @tryghost/job-manager@0.8.19
- @tryghost/release-utils@0.7.11
- @tryghost/update-check-service@0.3.1
- @tryghost/vhost-middleware@1.0.21
2022-02-04 14:27:23 +01:00
Renovate Bot
30527371fc
Update dependency @sinonjs/fake-timers to v9.1.0
2022-02-03 12:13:52 +00:00
Renovate Bot
6885cdbc90
Update dependency @sinonjs/fake-timers to v9
2022-01-28 14:08:17 +00:00
Daniel Lockyer
19d2411f2b
Published new versions
...
- @tryghost/adapter-manager@0.2.27
- @tryghost/bootstrap-socket@0.2.16
- @tryghost/config-url-helpers@0.1.4
- @tryghost/constants@1.0.1
- @tryghost/database-info@0.1.0
- @tryghost/errors@1.2.1
- @tryghost/image-transform@1.0.27
- @tryghost/job-manager@0.8.18
- @tryghost/limit-service@1.0.9
- @tryghost/minifier@0.1.10
- @tryghost/moleculer-service-from-class@0.2.22
- @tryghost/mw-error-handler@0.1.2
- @tryghost/mw-session-from-token@0.1.27
- @tryghost/mw-update-user-last-seen@0.1.2
- @tryghost/package-json@1.0.15
- @tryghost/pretty-cli@1.2.23
- @tryghost/promise@0.1.14
- @tryghost/release-utils@0.7.10
- @tryghost/security@0.2.14
- @tryghost/session-service@0.1.37
- @tryghost/settings-path-manager@0.1.3
- @tryghost/vhost-middleware@1.0.20
- @tryghost/zip@1.1.19
2022-01-18 09:08:09 +00:00
John O'Nolan
279ce66e71
2022
2022-01-06 09:52:35 +00:00
Renovate Bot
4c288fa50e
Update dependency c8 to v7.11.0
2021-12-30 16:28:02 +00:00
Renovate Bot
e0551bd32e
Update dependency date-fns to v2.28.0
2021-12-28 16:35:23 +00:00
Sam Lord
90e6e8b37d
Published new versions
...
- @tryghost/bootstrap-socket@0.2.15
- @tryghost/job-manager@0.8.17
2021-12-06 11:28:22 +00:00
Sam Lord
565790083e
job-manager should support logging to parent process
...
refs: https://github.com/TryGhost/Toolbox/issues/146
2021-12-06 11:27:44 +00:00
Sam Lord
c4009fd4cf
Published new versions
...
- @tryghost/bootstrap-socket@0.2.14
- @tryghost/job-manager@0.8.16
2021-12-02 13:45:25 +00:00
Sam Lord
a98ae3734f
@tryghost/job-manager: Switch to @tryghost/logging from injected argument
...
refs: https://github.com/TryGhost/Toolbox/issues/146
2021-12-02 13:40:02 +00:00
Sam Lord
ac6cbf3d58
Published new versions
...
- @tryghost/adapter-manager@0.2.20
- @tryghost/errors@1.0.1
- @tryghost/image-transform@1.0.20
- @tryghost/job-manager@0.8.15
- @tryghost/limit-service@1.0.2
- @tryghost/minifier@0.1.3
- @tryghost/package-json@1.0.8
- @tryghost/release-utils@0.7.3
- @tryghost/session-service@0.1.30
2021-11-30 13:59:24 +00:00
Renovate Bot
6f97bc9063
Update dependency date-fns to v2.27.0
2021-11-30 11:32:47 +00:00
Sam Lord
ffde968c47
Published new versions
...
- @tryghost/adapter-manager@0.2.19
- @tryghost/errors@1.0.0
- @tryghost/image-transform@1.0.19
- @tryghost/job-manager@0.8.14
- @tryghost/limit-service@1.0.1
- @tryghost/minifier@0.1.2
- @tryghost/package-json@1.0.7
- @tryghost/release-utils@0.7.2
- @tryghost/session-service@0.1.29
2021-11-30 11:31:51 +00:00
Sam Lord
ee7b1e4dc6
Combine @tryghost/ignition-errors with @tryghost/errors
...
refs: https://github.com/TryGhost/Toolbox/issues/147
2021-11-30 11:31:10 +00:00
Hannah Wolfe
a5559d44b6
Published new versions
...
- @tryghost/job-manager@0.8.13
- @tryghost/minifier@0.1.1
2021-11-19 12:52:05 +00:00
Renovate Bot
78559033cd
Update dependency date-fns to v2.26.0
2021-11-19 08:48:53 +00:00
Daniel Lockyer
d03f9b4e90
Published new versions
...
- @tryghost/image-transform@1.0.18
- @tryghost/job-manager@0.8.12
2021-11-05 12:03:16 +00:00
Renovate Bot
5872147193
Update dependency @sinonjs/fake-timers to v8.1.0
2021-11-03 14:32:11 +00:00
Naz
8520c8a746
Published new versions
...
- @tryghost/adapter-manager@0.2.18
- @tryghost/bootstrap-socket@0.2.13
- @tryghost/config-url-helpers@0.1.3
- @tryghost/constants@0.1.12
- @tryghost/errors@0.2.17
- @tryghost/image-transform@1.0.17
- @tryghost/job-manager@0.8.11
- @tryghost/limit-service@0.6.5
- @tryghost/moleculer-service-from-class@0.2.21
- @tryghost/mw-session-from-token@0.1.26
- @tryghost/package-json@1.0.6
- @tryghost/pretty-cli@1.2.22
- @tryghost/promise@0.1.13
- @tryghost/release-utils@0.7.1
- @tryghost/security@0.2.13
- @tryghost/session-service@0.1.28
- @tryghost/settings-path-manager@0.1.2
- @tryghost/vhost-middleware@1.0.19
- @tryghost/zip@1.1.18
2021-10-22 16:01:20 +04:00
Daniel Lockyer
81f566b44a
Added codecov.io coverage uploader to CI
...
refs linear.app/tryghost/issue/CORE-74/improve-the-test-situation
- this commit adds the codecov GitHub Action into CI so we can upload
coverage reports
- the coverage files need to be in XML for them to work with
codecov, so this commit also adds cobertura (XML) as a reporter
2021-10-20 11:56:20 +02:00
Renovate Bot
ebe62e27c1
Update dependency mocha to v9.1.3
2021-10-15 08:26:58 +00:00
Renovate Bot
dee321eebc
Update dependency c8 to v7.10.0
2021-10-06 23:39:01 +00:00
Renovate Bot
5ac4596a30
Update dependency date-fns to v2.25.0
2021-10-05 09:01:07 +00:00
Daniel Lockyer
fd94548b1e
Published new versions
...
- @tryghost/adapter-manager@0.2.17
- @tryghost/bootstrap-socket@0.2.12
- @tryghost/constants@0.1.11
- @tryghost/errors@0.2.16
- @tryghost/image-transform@1.0.16
- @tryghost/job-manager@0.8.10
- @tryghost/limit-service@0.6.4
- @tryghost/moleculer-service-from-class@0.2.20
- @tryghost/mw-session-from-token@0.1.25
- @tryghost/package-json@1.0.5
- @tryghost/pretty-cli@1.2.21
- @tryghost/promise@0.1.12
- @tryghost/release-utils@0.7.0
- @tryghost/security@0.2.12
- @tryghost/session-service@0.1.27
- @tryghost/vhost-middleware@1.0.18
- @tryghost/zip@1.1.17
2021-10-01 16:57:18 +01:00
Daniel Lockyer
d1c58466b5
Updated repository links
...
no issue
- this repo changes from `master` to `main` a while back, but the
repository links needed updating too
2021-10-01 14:34:06 +01:00
Naz
8f4c4f66b5
Published new versions
...
- @tryghost/adapter-manager@0.2.16
- @tryghost/bootstrap-socket@0.2.11
- @tryghost/config-url-helpers@0.1.2
- @tryghost/constants@0.1.10
- @tryghost/errors@0.2.15
- @tryghost/image-transform@1.0.15
- @tryghost/job-manager@0.8.9
- @tryghost/limit-service@0.6.3
- @tryghost/moleculer-service-from-class@0.2.19
- @tryghost/mw-session-from-token@0.1.24
- @tryghost/package-json@1.0.4
- @tryghost/pretty-cli@1.2.20
- @tryghost/promise@0.1.11
- @tryghost/release-utils@0.6.17
- @tryghost/security@0.2.11
- @tryghost/session-service@0.1.26
- @tryghost/settings-path-manager@0.1.0
- @tryghost/tpl@0.1.5
- @tryghost/vhost-middleware@1.0.17
- @tryghost/zip@1.1.16
2021-09-30 19:23:46 +02:00
Renovate Bot
c9b4504bab
Update dependency @sinonjs/fake-timers to v8.0.1
2021-09-27 14:36:36 +00:00
Renovate Bot
81bb6465fb
Update dependency mocha to v9.1.2
2021-09-27 01:04:25 +00:00
Renovate Bot
4a1da452e9
Update Test & linting packages
2021-09-22 14:29:23 +00:00
Naz
b428648665
Published new versions
...
- @tryghost/adapter-manager@0.2.15
- @tryghost/bootstrap-socket@0.2.10
- @tryghost/config-url-helpers@0.1.1
- @tryghost/constants@0.1.9
- @tryghost/errors@0.2.14
- @tryghost/image-transform@1.0.14
- @tryghost/job-manager@0.8.8
- @tryghost/limit-service@0.6.2
- @tryghost/moleculer-service-from-class@0.2.18
- @tryghost/mw-session-from-token@0.1.23
- @tryghost/package-json@1.0.3
- @tryghost/pretty-cli@1.2.19
- @tryghost/promise@0.1.10
- @tryghost/release-utils@0.6.16
- @tryghost/security@0.2.10
- @tryghost/session-service@0.1.25
- @tryghost/tpl@0.1.4
- @tryghost/vhost-middleware@1.0.16
- @tryghost/zip@1.1.15
2021-09-22 11:59:35 +02:00
Naz
4b70c7e0c0
Removed use of native JS Error objects
...
closes https://linear.app/tryghost/issue/CORE-55/fix-errors-in-utils-repo-job-manager
- The latest ESLint rules forbid use of native JS errors, updated the codebase before bumping the ESLint version
2021-09-22 11:50:21 +02:00
Renovate Bot
a28a2a23a5
Update dependency date-fns to v2.24.0
2021-09-17 07:39:17 +00:00
Renovate Bot
ced3a5251c
Update dependency @sinonjs/fake-timers to v8
2021-09-15 11:49:45 +00:00
Renovate Bot
ff5ee78825
Update dependency c8 to v7.9.0
2021-09-10 04:03:35 +00:00
Renovate Bot
2b7e2676eb
Update dependency c8 to v7.8.0
2021-07-28 17:56:14 +00:00
Renovate Bot
798f7d1421
Update dependency date-fns to v2.23.0
2021-07-23 07:26:46 +00:00
Daniel Lockyer
f918398779
Added c8 test coverage to all packages
...
refs https://github.com/TryGhost/Team/issues/870
- using `c8` allows us to see test coverage for all packages in the repo
- this commit adds `c8` as a dev dependency and prepends the `mocha`
command with `c8` so it runs on all tests
2021-07-14 11:26:06 +01:00
Hannah Wolfe
b06e2a4577
Published new versions
...
- @tryghost/adapter-manager@0.2.13
- @tryghost/bootstrap-socket@0.2.9
- @tryghost/constants@0.1.8
- @tryghost/errors@0.2.12
- @tryghost/image-transform@1.0.12
- @tryghost/job-manager@0.8.7
- @tryghost/limit-service@0.6.1
- @tryghost/moleculer-service-from-class@0.2.16
- @tryghost/mw-session-from-token@0.1.21
- @tryghost/package-json@0.1.2
- @tryghost/pretty-cli@1.2.18
- @tryghost/promise@0.1.9
- @tryghost/release-utils@0.6.15
- @tryghost/security@0.2.9
- @tryghost/session-service@0.1.23
- @tryghost/tpl@0.1.0
- @tryghost/vhost-middleware@1.0.15
- @tryghost/zip@1.1.14
2021-06-09 12:10:10 +01:00
Renovate Bot
c72d090c97
Update dependency mocha to v9
2021-06-09 09:58:44 +00:00
Renovate Bot
4fbd1ac31f
Update dependency @sinonjs/fake-timers to v7.1.2
2021-05-28 15:50:34 +00:00
Renovate Bot
b47312607d
Update dependency date-fns to v2.22.1
2021-05-28 12:23:22 +00:00
Renovate Bot
f35a07f4cb
Update dependency date-fns to v2.22.0
2021-05-28 08:51:25 +00:00
Renovate Bot
2f926c740d
Update dependency @sinonjs/fake-timers to v7.1.1
2021-05-27 11:58:34 +00:00
Renovate Bot
80b56b8976
Update dependency sinon to v11
2021-05-24 22:37:15 +00:00
Renovate Bot
b71fe10342
Update dependency @sinonjs/fake-timers to v7.1.0
2021-05-21 13:51:02 +00:00
Naz
6a08297c3a
Published new versions
...
- @tryghost/job-manager@0.8.6
- @tryghost/limit-service@0.5.1
2021-05-12 16:42:36 +04:00
Renovate Bot
e6343c985f
Update dependency date-fns to v2.21.3
2021-05-10 01:34:46 +00:00
Naz
763875a15b
Published new versions
...
- @tryghost/job-manager@0.8.5
- @tryghost/limit-service@0.4.4
- @tryghost/mw-session-from-token@0.1.20
- @tryghost/package-json@0.1.0
- @tryghost/session-service@0.1.21
- @tryghost/zip@1.1.13
2021-05-07 15:00:07 +04:00
Renovate Bot
84fa478e0f
Update dependency date-fns to v2.21.2
2021-05-05 09:35:35 +00:00
Daniel Lockyer
098801de2c
Published new versions
...
- @tryghost/adapter-manager@0.2.12
- @tryghost/errors@0.2.11
- @tryghost/image-transform@1.0.11
- @tryghost/job-manager@0.8.4
- @tryghost/limit-service@0.4.2
- @tryghost/moleculer-service-from-class@0.2.15
- @tryghost/mw-session-from-token@0.1.19
- @tryghost/pretty-cli@1.2.17
- @tryghost/promise@0.1.8
- @tryghost/release-utils@0.6.14
- @tryghost/security@0.2.8
- @tryghost/session-service@0.1.20
- @tryghost/zip@1.1.12
2021-04-19 10:25:57 +01:00
Naz
5c89a5bec2
Published new versions
...
- @tryghost/adapter-manager@0.2.11
- @tryghost/job-manager@0.8.3
- @tryghost/limit-service@0.4.1
- @tryghost/moleculer-service-from-class@0.2.14
- @tryghost/mw-session-from-token@0.1.18
- @tryghost/session-service@0.1.19
2021-04-17 08:12:34 +12:00
Renovate Bot
3184ca584d
Pin dependencies
2021-04-16 12:28:10 +00:00
Daniel Lockyer
713cbd3cc4
Unpinned all dependencies
...
no issue
- this Utils repo contains libraries, whose dependencies should not be
pinned in order to reduce multiple versions of the same package
appearing for consumers
2021-04-16 13:06:54 +01:00
Renovate Bot
e703a414b2
Update dependency date-fns to v2.21.1
2021-04-15 09:45:52 +00:00
Renovate Bot
0ad3198d17
Update dependency date-fns to v2.21.0
2021-04-14 13:51:00 +00:00
Renovate Bot
989c7bee30
Update dependency @sinonjs/fake-timers to v7
2021-04-14 13:50:00 +00:00
Renovate Bot
a7fee2ad49
Update dependency date-fns to v2.20.3
2021-04-13 14:30:20 +00:00
Renovate Bot
fdd209a9c3
Update dependency date-fns to v2.20.2
2021-04-12 14:12:39 +00:00
Renovate Bot
2b0685396c
Update dependency date-fns to v2.20.1
2021-04-09 13:02:54 +00:00
Renovate Bot
666907f853
Update dependency date-fns to v2.20.0
2021-04-08 04:47:36 +00:00
Naz
e11c0f43cf
Published new versions
...
- @tryghost/adapter-manager@0.2.10
- @tryghost/bootstrap-socket@0.2.8
- @tryghost/constants@0.1.7
- @tryghost/errors@0.2.10
- @tryghost/image-transform@1.0.10
- @tryghost/job-manager@0.8.2
- @tryghost/limit-service@0.4.0
- @tryghost/moleculer-service-from-class@0.2.13
- @tryghost/mw-session-from-token@0.1.17
- @tryghost/pretty-cli@1.2.16
- @tryghost/promise@0.1.7
- @tryghost/release-utils@0.6.13
- @tryghost/security@0.2.7
- @tryghost/session-service@0.1.18
- @tryghost/vhost-middleware@1.0.14
- @tryghost/zip@1.1.11
2021-04-07 13:47:32 +12:00
Renovate Bot
01a3e89ef5
Update dependency sinon to v10
2021-04-02 01:16:56 +00:00
Renovate Bot
5fbbc6e7bb
Update dependency fastq to v1.11.0
2021-04-01 18:31:46 +00:00
Renovate Bot
47391855dd
Update dependency date-fns to v2.19.0
2021-04-01 15:59:57 +00:00
Renovate Bot
8075074e9a
Update dependency cron-validate to v1.4.3
2021-04-01 14:33:16 +00:00
Renovate Bot
ff22540ef2
Update Test & linting packages
2021-04-01 09:44:12 +00:00
Naz
4bd8dc90ed
Published new versions
...
- @tryghost/job-manager@0.8.1
2021-03-03 12:27:50 +13:00
Naz
6b2494a5bc
Bumped bree to 6.2.0
...
refs 55060e323c
- This bump was meant to be done when the referenced changes landed. Without it parts of worker thread messages are lost
2021-03-03 12:26:37 +13:00
Naz
0e951cad36
Published new versions
...
- @tryghost/adapter-manager@0.2.9
- @tryghost/bootstrap-socket@0.2.7
- @tryghost/constants@0.1.6
- @tryghost/errors@0.2.9
- @tryghost/image-transform@1.0.9
- @tryghost/job-manager@0.8.0
- @tryghost/moleculer-service-from-class@0.2.12
- @tryghost/mw-session-from-token@0.1.16
- @tryghost/pretty-cli@1.2.15
- @tryghost/promise@0.1.6
- @tryghost/release-utils@0.6.12
- @tryghost/security@0.2.6
- @tryghost/session-service@0.1.17
- @tryghost/vhost-middleware@1.0.13
- @tryghost/zip@1.1.10
2021-02-22 19:13:32 +13:00
Naz
0e2c5cdb45
Fixed typo
2021-02-22 19:10:55 +13:00
Naz
55060e323c
✨ Added workerMessageHandler option to ctr options
...
refs https://github.com/TryGhost/Ghost/issues/12496
- `workerMessageHandler` option allows for custom worker message handling and allows to eliminate a need for loggers of any type inside of jobs.
- removing loggers from jobs solves file hanle leak which used to cause Ghost process to crash (see referenced issue)
2021-02-22 19:10:47 +13:00
Naz
0e1c2ececb
Fixed a typo
2021-02-22 18:54:23 +13:00
Naz
57c3b4428d
Fixed spelling mistakes
2021-02-22 13:11:19 +13:00
Renovate Bot
9399866e95
Update dependency mocha to v8.3.0
2021-02-11 19:30:19 +00:00
Daniel Lockyer
d8f529ef78
Published new versions
...
- @tryghost/adapter-manager@0.2.8
- @tryghost/bootstrap-socket@0.2.6
- @tryghost/constants@0.1.5
- @tryghost/errors@0.2.8
- @tryghost/image-transform@1.0.8
- @tryghost/job-manager@0.7.2
- @tryghost/moleculer-service-from-class@0.2.11
- @tryghost/mw-session-from-token@0.1.15
- @tryghost/pretty-cli@1.2.14
- @tryghost/promise@0.1.5
- @tryghost/release-utils@0.6.11
- @tryghost/security@0.2.5
- @tryghost/session-service@0.1.16
- @tryghost/vhost-middleware@1.0.12
- @tryghost/zip@1.1.9
2021-02-09 11:54:13 +00:00
Renovate Bot
2293e0b29f
Update dependency date-fns to v2.17.0
2021-02-05 15:11:27 +00:00
Renovate Bot
68d94d8880
Update dependency delay to v5
2021-02-01 15:50:32 +00:00
Renovate Bot
53f0e8855c
Update dependency delay to v4.4.1
2021-02-01 01:06:49 +00:00
Renovate Bot
078ab5374a
Update dependency fastq to v1.10.1
2021-01-28 12:00:32 +00:00
John O'Nolan
61109d57a0
2021
2021-01-25 16:20:43 +00:00
Renovate Bot
4531b94d6b
Update dependency sinon to v9.2.4
2021-01-25 00:43:01 +00:00
Renovate Bot
ba35d61e58
Update dependency bree to v4.1.1
2021-01-19 17:59:57 +00:00
Daniel Lockyer
c4e2208158
Published new versions
...
- @tryghost/adapter-manager@0.2.7
- @tryghost/bootstrap-socket@0.2.5
- @tryghost/constants@0.1.4
- @tryghost/errors@0.2.7
- @tryghost/image-transform@1.0.7
- @tryghost/job-manager@0.7.1
- @tryghost/moleculer-service-from-class@0.2.10
- @tryghost/mw-session-from-token@0.1.14
- @tryghost/pretty-cli@1.2.13
- @tryghost/promise@0.1.4
- @tryghost/release-utils@0.6.10
- @tryghost/security@0.2.4
- @tryghost/session-service@0.1.15
- @tryghost/vhost-middleware@1.0.11
- @tryghost/zip@1.1.8
2021-01-12 16:43:48 +00:00
Daniel Lockyer
f6d5480c4f
Renamed TryGhost/Ghost-Utils
links to TryGhost/Utils
...
no issue
- this repository has been renamed so this commit just brings all the
links inline with this change
2021-01-12 16:40:16 +00:00
Naz
34411cfcc1
Improved documentation and job examples
...
refs #122
- As job signature has changed in 3bca4f63b8
and documentation needed updates accordingly
2021-01-07 15:17:38 +13:00
Renovate Bot
70dff36657
Update dependency sinon to v9.2.3
2021-01-06 15:05:05 +00:00
Naz
f0ef03476d
Published new versions
...
- @tryghost/adapter-manager@0.2.6
- @tryghost/job-manager@0.7.0
2021-01-06 16:07:24 +13:00
Naz
5d97e6586b
Changed test grouping to distinct types of jobs
2021-01-06 13:46:47 +13:00
Naz
3bca4f63b8
Refactored job manager interface to consist of single addJob method
...
refs #122
- In future changes there's a plan to add "inline" scheduled jobs, which would conflict current method naming.
- The amount of parameters in the methods was more than 3, so it made sense to transform them into an options object
- Scheduling still doesn't work for "inline" jobs. This should be solved as a part of upstream library (https://github.com/breejs/bree/issues/68 )
2021-01-06 13:45:23 +13:00
Renovate Bot
ca71762fee
Update dependency p-wait-for to v3.2.0
2021-01-01 17:06:03 +00:00
Renovate Bot
6eab4de6c4
Update dependency cron-validate to v1.4.2
2020-12-25 17:25:51 +00:00
Renovate Bot
753bd121d1
Update dependency fastq to v1.10.0
2020-12-21 01:07:04 +00:00
Naz
2528f7978a
Published new versions
...
- @tryghost/adapter-manager@0.2.5
- @tryghost/bootstrap-socket@0.2.4
- @tryghost/constants@0.1.3
- @tryghost/errors@0.2.6
- @tryghost/image-transform@1.0.6
- @tryghost/job-manager@0.6.0
- @tryghost/moleculer-service-from-class@0.2.9
- @tryghost/mw-session-from-token@0.1.13
- @tryghost/pretty-cli@1.2.12
- @tryghost/promise@0.1.3
- @tryghost/release-utils@0.6.9
- @tryghost/security@0.2.3
- @tryghost/session-service@0.1.14
- @tryghost/zip@1.1.7
2020-12-14 17:36:18 +13:00
Naz
1bee6d4fde
Fixed flaky job-manager test
2020-12-14 17:16:55 +13:00
Naz
c13d8a2fa6
✨ Added errorHandler option to customize job error logic
...
closes https://github.com/TryGhost/Ghost-Utils/issues/118
- Custom error handling is needed to be able to override default bree
error handling logic.
- bree bump to 4.1.0 also fixed logging errors (object Object fix in
tests)
- The handler function receives two parameters. First contains an error
that has been thrown by the job. Second, job and worker metadata
2020-12-14 16:09:36 +13:00
Renovate Bot
c3e3935c6d
Update dependency sinon to v9.2.2
2020-12-11 12:43:04 +00:00
Naz
516311aa43
Published new versions
...
- @tryghost/adapter-manager@0.2.4
- @tryghost/job-manager@0.5.0
- @tryghost/mw-session-from-token@0.1.12
- @tryghost/session-service@0.1.13
2020-12-09 20:29:53 +13:00
Naz
13e8336de9
Updated docs around inline/offloaded jobs
...
no issue
- Provided more context about which type of job does what and introduced naming to be able to distinguish them
- The naming is still to be reviewed by peers
2020-12-09 20:04:09 +13:00
Naz
2462e9642e
Added documentation for immediate jobs
2020-12-09 20:02:36 +13:00
Naz
7457393b5b
Added jsdoc to bree job builder
2020-12-09 19:34:04 +13:00
Naz
7ece94f411
✨ Added support for immediate offloaded jobs
...
closes #117
- Having immediately executable offloaded jobs is necessary to be able to run usecases like: send batched emails now, or any other job that does not need to be scheduled
- Changed "simple" job timeout to make tests run faster
2020-12-09 19:11:17 +13:00
Naz
12eb035bdc
Published new versions
...
- @tryghost/job-manager@0.4.0
2020-12-08 16:44:24 +13:00
Naz
320e7feb0e
✨ Added ability to remove scheduled jobs
...
closes #119
- A future use-case which this feature caters for is allowing to migrate "post scheduler" to use job manager instead of managing scheduling itself
- removeJob method will be needed to allow "rescheduling" of the post
2020-12-08 16:43:18 +13:00
Naz
86b9f0d2ce
Renamed when parameter
...
no issue
- Semantically "at" fits better as it matches the name of similarly purposed UNIX utility
2020-12-03 16:22:56 +13:00
Naz
30c9112bb5
Updated example of scheduled on off job using date
2020-12-03 15:53:10 +13:00
Naz
eb0eb2d744
✨ Added support for one off scheduled jobs
...
closes #115
- When scheduling one off job for future execution you can now pass in Date as a first parameter to `scheduleJob` method
2020-12-02 21:26:15 +13:00
Naz
ed29a29704
Published new versions
...
- @tryghost/job-manager@0.3.4
2020-12-02 00:22:20 +13:00
Naz
35f8933070
Fixed cron definition not accepting seconds parameter
2020-12-02 00:19:01 +13:00
Naz
404209ba30
Published new versions
...
- @tryghost/job-manager@0.3.3
2020-11-30 15:36:54 +13:00
Naz
715789406d
Improved job registration logging
2020-11-30 15:35:57 +13:00
Naz
3892e57194
Added docs on how each method executes the job
2020-11-30 15:30:45 +13:00
Naz
238ff4abdb
Clarified usecases of 'done' and 'cancelled' job events
...
no issue
- Added docs around which events are suited best for job termination/completeion
2020-11-30 13:48:07 +13:00
Naz
6389df346c
Published new versions
...
- @tryghost/adapter-manager@0.2.3
- @tryghost/job-manager@0.3.2
2020-11-26 11:08:10 +13:00
Naz
73b60854cd
Added documentation about bthread polyfill
...
refs https://github.com/TryGhost/Ghost/issues/12402
2020-11-25 15:21:02 +13:00
Naz
a2fdc69a23
Added docs about job lifecycle
...
refs https://github.com/orgs/TryGhost/projects/36#card-49938015
2020-11-25 15:03:54 +13:00
Naz
d1df62f84c
Added description about graceful job termination
2020-11-25 13:56:01 +13:00
Naz
d94830071d
Added description for job termination best practice
2020-11-25 13:55:34 +13:00
Naz
c3ab2be076
Added examples of job and job manager initialization
2020-11-25 13:44:04 +13:00
Naz
bc93a166e9
Updated readme with instructions about jobs
...
refs https://github.com/TryGhost/Ghost/issues/12402
- Describes different types of jobs that could be executed depending on the nature of the jobs.
- Lays down ground rules on how to design scheduled jobs
2020-11-24 20:15:02 +13:00
Naz
1340306f4c
Updated job manager module description documentation
2020-11-24 19:55:51 +13:00
Naz
58bc922c0e
Fixed tests for cron expression validation
...
refs c0cecd71fe
2020-11-24 16:44:54 +13:00
Naz
67e664208a
Added documentation about job scheduling
...
refs https://github.com/TryGhost/Ghost/issues/12402
- Adds examples on how to queue regular "immediate" and reccuring "scheduled" jobs
2020-11-24 16:40:35 +13:00
Naz
c0cecd71fe
🐛 Fixed cron expression to read seconds parameter
...
no issue
- When providing a crontab schedule expression it should always contain 6 elements first one of them being a "seconds" schedule description . For example: '0/5 * * * * *' - meaning to run every 5 seconds
2020-11-24 16:37:46 +13:00
Naz
a8cb12250b
Published new versions
...
- @tryghost/adapter-manager@0.2.2
- @tryghost/job-manager@0.3.1
- @tryghost/moleculer-service-from-class@0.2.8
- @tryghost/mw-session-from-token@0.1.11
- @tryghost/session-service@0.1.12
2020-11-23 16:14:42 +13:00
Naz
a7b523e0f3
Bumped bree version to 4.0.0
...
refs https://github.com/breejs/bree/issues/50
refs f1ab159
- This bree version allows to avoid additional flag setting when initializing scheduled job
2020-11-23 16:03:36 +13:00
Renovate Bot
e27b788d48
Update dependency cron-validate to v1.4.1
2020-11-23 02:06:12 +00:00
Naz
f1ab1597e8
Changed scheduled jobs not run immediately after initialization
...
refs https://github.com/breejs/bree/issues/50
2020-11-23 14:24:24 +13:00
Naz
06bc47678b
Published new versions
...
- @tryghost/adapter-manager@0.2.1
- @tryghost/job-manager@0.3.0
- @tryghost/mw-session-from-token@0.1.10
- @tryghost/security@0.2.2
- @tryghost/session-service@0.1.11
- @tryghost/zip@1.1.6
2020-11-19 18:17:14 +13:00
Naz
986a59abda
Moved job metadata attribute to global bree config
...
no issue
- Because every job is getting this attribute anyways there's no need to keep it nested on per-job bases
2020-11-19 18:15:52 +13:00
Naz
4b18cbcbdb
✨ Added support for worker threads in scheduled jobs
...
no issue
- When jobs are performing CPU intensive tasks they block main process'
event loop. They also can cause memory leaks or unexpected crashes
effectively crashing the parent proccess. To address these issues jobs need to be performed off of main
process. Worker Threads (https://nodejs.org/dist/latest-v12.x/docs/api/worker_threads.html )
are the best candidate for such work.
- These changes introduce an integration on top of bree
(https://github.com/breejs/bree/ ) which allows to run recurring
jobs in worker thereads. It falls back to child process execution for
Node v10 running without `--experimental-worker` flag.
- bree was chosen not only because it gives a polyfill for older Node
versions. It has support for some of the future use-cases Ghost is looking to
implement, like scheduled jobs.
- This changeset also includes a complete example of job running on an
interval with a possibility for graceful shutdown
2020-11-19 17:59:36 +13:00
Naz
e6e7dc93dd
Added test coverage for graceful job queue shutdown
2020-11-17 18:14:37 +13:00
Naz
9cbbef0398
Published new versions
...
- @tryghost/job-manager@0.2.0
2020-11-10 17:16:09 +13:00
Naz
7925f12fcc
Fixed lint for arrow function use in beforeEach block
2020-11-10 17:15:08 +13:00
Naz
d8f7db8773
Cleaned up test
2020-11-10 17:11:31 +13:00
Naz
85b51524c9
Added loggign and more graceful error handling
...
no issue
- This is a quick implementation change to prevent from queue stalling and never becoming idle in case there's an error thrown from within the job function/module
- More robust error handling should be designed soon!
2020-11-10 17:11:24 +13:00
Naz
7dac72d6bf
Added test coverage for basic job registration
2020-11-10 16:35:04 +13:00
Naz
c85ec6aaa5
Added support for job execution from module path
...
no issue
- Jobs should not always be functions, one of the standard practices is having a job defined in a module as a self contained executable function
- First parameter of `addJob` function now also handles path to modules which it imports and executes
2020-11-10 16:32:47 +13:00
Naz
70b42e3a75
Switched cron validation library to cron-validate
...
no issue
- Previous library was relyting on try/catch block to check if the expression is valid. Flow control through error catching is not considered a good practice and can effect performance (https://riptutorial.com/javascript/example/5297/avoid-try-catch-in-performance-critical-functions )
2020-11-10 13:33:01 +13:00
Naz
ae4f35ddd8
Changed scheduleJob method signature to take when parameter first
...
no issue
- Accepting the schedule or a data when scheduled job should be run would follow a signature used in other established frameworks: (1) https://github.com/mperham/sidekiq/wiki/Ent-Periodic-Jobs#definition
- Another reason to put scheduling parameter first is this would allow leaving an optional "data" parameter as last
2020-11-10 13:15:10 +13:00
Naz
9abbe60e10
Published new versions
...
- @tryghost/adapter-manager@0.2.0
- @tryghost/bootstrap-socket@0.2.3
- @tryghost/constants@0.1.2
- @tryghost/errors@0.2.5
- @tryghost/image-transform@1.0.5
- @tryghost/job-manager@0.1.2
- @tryghost/moleculer-service-from-class@0.2.7
- @tryghost/mw-session-from-token@0.1.9
- @tryghost/pretty-cli@1.2.11
- @tryghost/promise@0.1.2
- @tryghost/release-utils@0.6.8
- @tryghost/security@0.2.1
- @tryghost/session-service@0.1.10
- @tryghost/vhost-middleware@1.0.10
- @tryghost/zip@1.1.5
2020-11-05 17:38:41 +13:00
Naz
d1bbd79ece
Updated JSDoc
2020-11-05 17:36:51 +13:00
Naz
1b1794063f
Added experimental job scheduling feature
...
no issue
- This method should be used with caution and should serve as a playground for upcoming new feature of scheduled jobs support
2020-11-05 17:36:29 +13:00