v10.0.0-rc28 - Add Process.sleep, lower DirtyWorker polling interval
parent
b9fca35731
commit
ee517b2f9b
|
@ -6,7 +6,8 @@ defmodule FarmbotCeleryScript.Compiler.UpdateResource do
|
|||
me = unquote(__MODULE__)
|
||||
variable = unquote(Map.fetch!(args, :resource))
|
||||
update = unquote(unpair(body, %{}))
|
||||
|
||||
# Go easy on the API...
|
||||
Process.sleep(1234)
|
||||
case variable do
|
||||
%AST{kind: :identifier} ->
|
||||
args = Map.fetch!(variable, :args)
|
||||
|
|
|
@ -7,7 +7,7 @@ defmodule FarmbotExt.API.DirtyWorker do
|
|||
|
||||
require Logger
|
||||
use GenServer
|
||||
@timeout 10000
|
||||
@timeout 4700
|
||||
|
||||
# these resources can't be accessed by `id`.
|
||||
@singular [
|
||||
|
|
Loading…
Reference in New Issue