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

Bug happening when running remote execution smart cell #365

Closed
hugobarauna opened this issue Nov 14, 2023 · 0 comments · Fixed by #366
Closed

Bug happening when running remote execution smart cell #365

hugobarauna opened this issue Nov 14, 2023 · 0 comments · Fixed by #366

Comments

@hugobarauna
Copy link
Member

Running this code works:

CleanShot 2023-11-14 at 16 02 21

But running that doesn't work:

CleanShot 2023-11-14 at 16 04 34

Here's the code generated by the smart cell, when the code doesn't work:

require Kino.RPC
node = String.to_atom(System.fetch_env!("LB_TEAMS_PROD_NODE"))
Node.set_cookie(node, String.to_atom(System.fetch_env!("LB_TEAMS_PROD_COOKIE")))

Kino.RPC.eval_string(
  node,
  """
  Hub.Orgs.Org.changeset(org, %{name: "#{org.name}"})
  |> Hub.Repo.update()
  """,
  file: __ENV__.file
)

That said, when the bug happens, even I run the generated code by the smart cell, when the code worked, now it doesn't:

CleanShot 2023-11-14 at 16 06 26

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

Successfully merging a pull request may close this issue.

1 participant