Skip to content

Instantly share code, notes, and snippets.

View petzel's full-sized avatar
💭
🗺💻🏍🎣🍺

Eric Petzel petzel

💭
🗺💻🏍🎣🍺
  • San Francisco, CA
View GitHub Profile
@petzel
petzel / multipro_template.py
Created April 13, 2021 09:51 — forked from blaylockbk/multipro_template.py
Template for Python multiprocessing and multithreading
import multiprocessing #:)
def do_this(number):
print number
return number*2
# Create a list to iterate over.
# (Note: Multiprocessing only accepts one item at a time)
some_list = range(0,10)
@petzel
petzel / error
Created December 2, 2018 20:07
INFO [2018-12-02 20:05:21,263] org.eclipse.jetty.server.AbstractConnector: Started admin@15383681{HTTP/1.1,[http/1.1]}{0.0.0.0:8081}
INFO [2018-12-02 20:05:21,264] org.eclipse.jetty.server.Server: Started @1702ms
ERROR [2018-12-02 20:05:42,017] graphql.servlet.AbstractGraphQLHttpServlet: Error executing GraphQL request!
! java.lang.NoSuchMethodError: graphql.ExecutionInput$Builder.dataLoaderRegistry(Lorg/dataloader/DataLoaderRegistry;)Lgraphql/ExecutionInput$Builder;
! at graphql.servlet.GraphQLInvocationInput.createExecutionInput(GraphQLInvocationInput.java:50)
! at graphql.servlet.GraphQLSingleInvocationInput.getExecutionInput(GraphQLSingleInvocationInput.java:21)
! at graphql.servlet.GraphQLQueryInvoker.query(GraphQLQueryInvoker.java:42)
! at graphql.servlet.AbstractGraphQLHttpServlet.query(AbstractGraphQLHttpServlet.java:335)
! at graphql.servlet.AbstractGraphQLHttpServlet.lambda$init$4(AbstractGraphQLHttpServlet.java:209)
! at graphql.servlet.AbstractGraphQLHttpServlet.doRequest(AbstractGraphQLHttpServ