teraslice 3.0.0-dev.0 → 3.0.0-dev.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/cluster-service.js +3 -1
  2. package/dist/src/lib/cluster/cluster_master.js +1 -1
  3. package/dist/src/lib/cluster/node_master.js +1 -1
  4. package/dist/src/lib/cluster/services/api.js +2 -2
  5. package/dist/src/lib/cluster/services/assets.js +1 -1
  6. package/dist/src/lib/cluster/services/cluster/backends/kubernetesV2/index.js +1 -1
  7. package/dist/src/lib/cluster/services/cluster/backends/kubernetesV2/k8s.js +1 -1
  8. package/dist/src/lib/cluster/services/cluster/backends/kubernetesV2/k8sResource.js +1 -1
  9. package/dist/src/lib/cluster/services/cluster/backends/kubernetesV2/k8sState.js +1 -1
  10. package/dist/src/lib/cluster/services/cluster/backends/kubernetesV2/utils.js +1 -1
  11. package/dist/src/lib/cluster/services/cluster/backends/native/index.js +1 -1
  12. package/dist/src/lib/cluster/services/cluster/backends/native/messaging.js +6 -5
  13. package/dist/src/lib/cluster/services/cluster/backends/state-utils.js +1 -1
  14. package/dist/src/lib/cluster/services/execution.js +1 -1
  15. package/dist/src/lib/cluster/services/jobs.js +1 -1
  16. package/dist/src/lib/config/default-sysconfig.js +0 -1
  17. package/dist/src/lib/config/index.js +1 -1
  18. package/dist/src/lib/config/schemas/system.js +2 -2
  19. package/dist/src/lib/storage/analytics.js +1 -1
  20. package/dist/src/lib/storage/assets.js +1 -1
  21. package/dist/src/lib/storage/backends/elasticsearch_store.js +7 -37
  22. package/dist/src/lib/storage/backends/mappings/analytics.js +37 -42
  23. package/dist/src/lib/storage/backends/mappings/asset.js +29 -34
  24. package/dist/src/lib/storage/backends/mappings/ex.js +51 -53
  25. package/dist/src/lib/storage/backends/mappings/job.js +21 -26
  26. package/dist/src/lib/storage/backends/mappings/state.js +24 -29
  27. package/dist/src/lib/storage/backends/s3_store.js +1 -1
  28. package/dist/src/lib/storage/execution.js +4 -2
  29. package/dist/src/lib/storage/jobs.js +1 -1
  30. package/dist/src/lib/storage/state.js +1 -2
  31. package/dist/src/lib/utils/api_utils.js +1 -1
  32. package/dist/src/lib/utils/asset_utils.js +2 -2
  33. package/dist/src/lib/utils/date_utils.js +1 -1
  34. package/dist/src/lib/utils/encoding_utils.js +1 -1
  35. package/dist/src/lib/utils/file_utils.js +1 -1
  36. package/dist/src/lib/utils/id_utils.js +1 -1
  37. package/dist/src/lib/utils/port_utils.js +1 -1
  38. package/dist/src/lib/workers/assets/loader-executable.js +1 -1
  39. package/dist/src/lib/workers/assets/loader.js +1 -1
  40. package/dist/src/lib/workers/assets/spawn.js +1 -1
  41. package/dist/src/lib/workers/execution-controller/execution-analytics.js +1 -1
  42. package/dist/src/lib/workers/execution-controller/index.js +1 -1
  43. package/dist/src/lib/workers/execution-controller/recovery.js +1 -1
  44. package/dist/src/lib/workers/execution-controller/scheduler.js +1 -1
  45. package/dist/src/lib/workers/execution-controller/slice-analytics.js +1 -1
  46. package/dist/src/lib/workers/helpers/job.js +1 -1
  47. package/dist/src/lib/workers/helpers/op-analytics.js +1 -1
  48. package/dist/src/lib/workers/helpers/terafoundation.js +1 -1
  49. package/dist/src/lib/workers/helpers/worker-shutdown.js +1 -1
  50. package/dist/src/lib/workers/metrics/index.js +1 -1
  51. package/dist/src/lib/workers/worker/index.js +1 -1
  52. package/dist/src/lib/workers/worker/slice.js +1 -1
  53. package/dist/test/lib/cluster/services/cluster/backends/kubernetes/v2/k8s-v2-spec.js +1 -1
  54. package/dist/test/lib/cluster/services/cluster/backends/kubernetes/v2/k8sResource-v2-spec.js +1 -1
  55. package/dist/test/lib/cluster/services/cluster/backends/kubernetes/v2/k8sState-multicluster-v2-spec.js +1 -1
  56. package/dist/test/lib/cluster/services/cluster/backends/kubernetes/v2/k8sState-v2-spec.js +1 -1
  57. package/dist/test/node_master-spec.js +3 -3
  58. package/dist/test/services/messaging-spec.js +1 -1
  59. package/dist/test/workers/execution-controller/execution-controller-spec.js +1 -1
  60. package/dist/test/workers/execution-controller/execution-special-test-cases-spec.js +1 -2
  61. package/dist/test/workers/execution-controller/execution-test-cases-spec.js +6 -1
  62. package/dist/test/workers/execution-controller/recovery-spec.js +1 -1
  63. package/dist/test/workers/execution-controller/scheduler-spec.js +1 -1
  64. package/dist/test/workers/fixtures/ops/example-reader/slicer.js +1 -1
  65. package/dist/test/workers/fixtures/ops/new-reader/slicer.js +1 -1
  66. package/dist/test/workers/helpers/configs.js +1 -2
  67. package/dist/test/workers/helpers/execution-controller-helper.js +1 -1
  68. package/dist/test/workers/helpers/test-context.js +1 -1
  69. package/dist/test/workers/helpers/zip-directory.js +1 -1
  70. package/dist/test/workers/worker/slice-spec.js +1 -1
  71. package/dist/test/workers/worker/worker-spec.js +1 -1
  72. package/package.json +11 -12
  73. package/worker-service.js +3 -1
package/worker-service.js CHANGED
@@ -1,12 +1,13 @@
1
1
  import {
2
2
  logError, get, isEmpty, isPlainObject
3
- } from '@terascope/utils';
3
+ } from '@terascope/core-utils';
4
4
  import { shutdownHandler } from './dist/src/lib/workers/helpers/worker-shutdown.js';
5
5
  import { safeDecode } from './dist/src/lib/utils/encoding_utils.js';
6
6
  import { makeExecutionContext } from './dist/src/lib/workers/context/execution-context.js';
7
7
  import { makeTerafoundationContext } from './dist/src/lib/workers/context/terafoundation-context.js';
8
8
  import { ExecutionController } from './dist/src/lib/workers/execution-controller/index.js';
9
9
  import { Worker } from './dist/src/lib/workers/worker/index.js';
10
+ import { makeLogger } from './dist/src/lib/workers/helpers/terafoundation.js';
10
11
 
11
12
  class Service {
12
13
  constructor(context) {
@@ -69,6 +70,7 @@ class Service {
69
70
 
70
71
  async function main() {
71
72
  const context = await makeTerafoundationContext();
73
+ context.logger = makeLogger(context, 'worker-service');
72
74
  const cmd = new Service(context);
73
75
 
74
76
  cmd.shutdownHandler = shutdownHandler(context, (event, err) => {