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

panic: runtime error: index out of range [-1] when retrieving workflow task #200

Closed
Tracked by #247
cschleiden opened this issue May 8, 2023 · 2 comments
Closed
Tracked by #247
Labels
bug Something isn't working

Comments

@cschleiden
Copy link
Owner

=== RUN   Test_RedisBackend/CreateWorkflowInstance_SameInstanceIDErrors
panic: runtime error: index out of range [-1]

goroutine 45 [running]:
github.com/cschleiden/go-workflows/backend/redis.(*redisBackend).GetWorkflowTask(0xc000317aa0, {0xcf3be8, 0xc0002bff20})
	/home/runner/work/go-workflows/go-workflows/backend/redis/workflow.go:110 +0xfc5
github.com/cschleiden/go-workflows/internal/worker.(*WorkflowWorker).poll(0xc000273730, {0xcf3b78, 0xc00007b9c0}, 0x6fc23ac00)
	/home/runner/work/go-workflows/go-workflows/internal/worker/workflow.go:238 +0xf1
github.com/cschleiden/go-workflows/internal/worker.(*WorkflowWorker).runPoll(0xc000273730, {0xcf3b78, 0xc00007b9c0})
	/home/runner/work/go-workflows/go-workflows/internal/worker/workflow.go:92 +0x110
created by github.com/cschleiden/go-workflows/internal/worker.(*WorkflowWorker).Start
	/home/runner/work/go-workflows/go-workflows/internal/worker/workflow.go:64 +0x87
FAIL	github.com/cschleiden/go-workflows/backend/redis	1.2[62](https:/cschleiden/go-workflows/actions/runs/4898582673/jobs/8747858451#step:5:63)s
FAIL
@cschleiden cschleiden added the bug Something isn't working label May 8, 2023
@cschleiden
Copy link
Owner Author

@cschleiden
Copy link
Owner Author

This should be fixed 🤞 A previous test failure left a worker running that conflicted with subsequent unit tests

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

No branches or pull requests

1 participant