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

Available funds not changed after adding funds #395

Open
madvas opened this issue Apr 17, 2024 · 1 comment
Open

Available funds not changed after adding funds #395

madvas opened this issue Apr 17, 2024 · 1 comment
Assignees
Labels

Comments

@madvas
Copy link
Collaborator

madvas commented Apr 17, 2024

Into this job I tried adding 0.01 amount of funds several times, I confirmed approval transaction and then transfer transaction, it went through ok, but then Available Funds at the job detail page shows same amount of 0.01. https://ethlance.qa.district0x.io/jobs/0xE68AAA7bbA98A81dB838d5188FAB46ECb55731F2

image

@madis
Copy link
Member

madis commented Apr 22, 2024

This is a weird issue. Locally I've seen this happening sporadically - the syncer receives the even, dispatches it (log: INFO: Dispatching event) but the handler for the event ethlance.server.syncer/handle-job-funds-change doesn't get called (even though the handlers are registered).

I resolved it locally by removing the compilation intermediate artifacts (server/.shadow-cljs/*, server/.cpcache/*, server/out/*) and recompiled. This could be caused by some macro compilation output not being re-compiled (macros in CLJS get compiled in JVM and inlined, if the macro file didn't change, the old output is inlined)
But in QA/production this shouldn't happen as the builds (compilation) is done in a new docker container, so a blank slate, and thus no old compilation artifacts would be there.

I'll ponder over how to make it this issue (and its causes) more visible and track it in case it happens again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants