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

RealtimeTrigger cannot be disabled from the UI #3735

Closed
loicmathieu opened this issue May 15, 2024 · 0 comments
Closed

RealtimeTrigger cannot be disabled from the UI #3735

loicmathieu opened this issue May 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@loicmathieu
Copy link
Member

loicmathieu commented May 15, 2024

Describe the issue

Example flow:

id: realtime-redis
namespace: company.myteam

triggers:
  - id: realtime
    type: io.kestra.plugin.redis.RealtimeTriggerList
    url: redis://:redis@localhost:6379/0
    key: mytriggerkey

tasks:
  - id: log
    type: io.kestra.core.tasks.log.Log
    message: "Received '{{ trigger.value }}'"

When you go to the triggers tab of the flow page and try to disable it, it generates an exception:

image

The same occur in the Administration -> Triggers page

Exception in the backend:

2024-05-15 10:21:10,289 ERROR io-executor-thread-19 i.k.w.controllers.ErrorController class io.kestra.plugin.gcp.pubsub.RealtimeTrigger cannot be cast to class io.kestra.core.models.triggers.PollingTriggerInterface (io.kestra.plugin.gcp.pubsub.RealtimeTrigger is in unnamed module of loader io.kestra.core.plugins.PluginClassLoader @32e5b717; io.kestra.core.models.triggers.PollingTriggerInterface is in unnamed module of loader 'app')
io.micronaut.http.exceptions.HttpStatusException: class io.kestra.plugin.gcp.pubsub.RealtimeTrigger cannot be cast to class io.kestra.core.models.triggers.PollingTriggerInterface (io.kestra.plugin.gcp.pubsub.RealtimeTrigger is in unnamed module of loader io.kestra.core.plugins.PluginClassLoader @32e5b717; io.kestra.core.models.triggers.PollingTriggerInterface is in unnamed module of loader 'app')
	at io.kestra.webserver.controllers.api.TriggerController.lambda$update$3(TriggerController.java:197)
	at io.kestra.jdbc.repository.AbstractJdbcTriggerRepository.lambda$lock$8(AbstractJdbcTriggerRepository.java:224)

Environment

  • Kestra Version: 0.17.0-SNAPSHOT
  • Operating System (OS/Docker/Kubernetes):
  • Java Version (if you don't run kestra in Docker):
@loicmathieu loicmathieu added the bug Something isn't working label May 15, 2024
@loicmathieu loicmathieu added this to the v0.17.0 milestone May 15, 2024
@Skraye Skraye self-assigned this May 17, 2024
@Skraye Skraye closed this as completed in 02b57af May 17, 2024
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
None yet
Development

No branches or pull requests

2 participants