Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[KV] NPE when used with WorkingDirectory #4592

Closed
fhussonnois opened this issue Aug 7, 2024 · 0 comments · Fixed by #4593
Closed

[KV] NPE when used with WorkingDirectory #4592

fhussonnois opened this issue Aug 7, 2024 · 0 comments · Fixed by #4593
Assignees
Labels
bug Something isn't working

Comments

@fhussonnois
Copy link
Member

Describe the issue

Exception:

2024-08-07 14:47:35,105 ERROR WorkerThread f.t.4.5DdLyga9C2RyAKgtlPGwYS Cannot invoke "io.kestra.core.services.KVStoreService.get(String, String, String)" because "this.kvStoreService" is null
java.lang.NullPointerException: Cannot invoke "io.kestra.core.services.KVStoreService.get(String, String, String)" because "this.kvStoreService" is null
	at io.kestra.core.runners.DefaultRunContext.namespaceKv(DefaultRunContext.java:441)
	at io.kestra.plugin.core.kv.Get.run(Get.java:78)
	at io.kestra.plugin.core.kv.Get.run(Get.java:23)
	at io.kestra.core.runners.WorkerTaskThread.doRun(WorkerTaskThread.java:76)
	at io.kestra.core.runners.AbstractWorkerThread.run(AbstractWorkerThread.java:57)

Flow

id: test
namespace: io.kestra
tasks:
  - id: WorkingDirectory
    type: io.kestra.plugin.core.flow.WorkingDirectory
    tasks:
      - id: set
        type: io.kestra.plugin.core.kv.Set
        key: my-key
        value: "{{ flow.id }} "

      - id: get
        type: io.kestra.plugin.core.kv.Get
        key: my-key

      - id: wprint
        type: io.kestra.plugin.core.log.Log
        message: "{{ outputs.get.value }}"

Environment

  • Kestra Version: 0.18.0
  • Operating System (OS/Docker/Kubernetes):
  • Java Version (if you don't run kestra in Docker):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant