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
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
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
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
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
12eb035bdc
Published new versions
...
- @tryghost/job-manager@0.4.0
2020-12-08 16:44:24 +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
404209ba30
Published new versions
...
- @tryghost/job-manager@0.3.3
2020-11-30 15:36:54 +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
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
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
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
9cbbef0398
Published new versions
...
- @tryghost/job-manager@0.2.0
2020-11-10 17:16:09 +13:00
Naz
7dac72d6bf
Added test coverage for basic job registration
2020-11-10 16:35:04 +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
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
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
Naz
3da365999d
Added cron expression validation
...
no issue
- CRON format is the most common one used for job scheduling and is well known to most developers
- This will become one of supported formats for job scheduling
2020-11-05 17:07:27 +13:00
Renovate Bot
3802972c71
Update dependency mocha to v8.2.1
2020-11-02 23:07:13 +00:00
Renovate Bot
b7f78dade1
Update dependency fastq to v1.9.0
2020-10-28 11:06:06 +00:00
Renovate Bot
afd2b07d9f
Update dependency sinon to v9.2.1
2020-10-28 09:04:46 +00:00
Renovate Bot
22c32fee0d
Update dependency mocha to v8.2.0
2020-10-16 21:24:13 +00:00
Renovate Bot
38af1013b7
Update dependency sinon to v9.2.0
2020-10-06 19:10:59 +00:00
Renovate Bot
a7e0e73f16
Update dependency sinon to v9.1.0
2020-09-29 22:07:11 +00:00
Nazar Gargol
1f73b85e5e
Published new versions
...
- @tryghost/adapter-manager@0.1.11
- @tryghost/bootstrap-socket@0.2.2
- @tryghost/constants@0.1.1
- @tryghost/errors@0.2.4
- @tryghost/image-transform@1.0.4
- @tryghost/job-manager@0.1.1
- @tryghost/moleculer-service-from-class@0.2.6
- @tryghost/mw-session-from-token@0.1.8
- @tryghost/pretty-cli@1.2.10
- @tryghost/promise@0.1.1
- @tryghost/release-utils@0.6.7
- @tryghost/security@0.2.0
- @tryghost/session-service@0.1.9
- @tryghost/vhost-middleware@1.0.9
- @tryghost/zip@1.1.4
2020-09-22 15:36:49 +12:00
Renovate Bot
0633b9a7fe
Update dependency mocha to v8.1.3
2020-08-28 21:05:06 +00:00
Renovate Bot
155daf42c8
Update dependency mocha to v8.1.2
2020-08-25 20:08:54 +00:00
Renovate Bot
0a6c935153
Update dependency sinon to v9.0.3
2020-08-11 21:07:08 +00:00
Hannah Wolfe
7501b19557
Published new versions
...
- @tryghost/job-manager@0.1.0
2020-08-11 21:22:33 +01:00
Hannah Wolfe
2c1417da88
✨ Added new job manager package
...
- Minimal working version of a job manager
- Uses fastq for handling the queue
- Exposes 2 methods: addJob and shutdown
2020-08-11 21:17:52 +01:00