From ee517b2f9bfdc48c5ac806cde5afb1ec532bf9a4 Mon Sep 17 00:00:00 2001 From: Rick Carlino Date: Thu, 14 May 2020 17:22:25 -0500 Subject: [PATCH] v10.0.0-rc28 - Add Process.sleep, lower DirtyWorker polling interval --- VERSION | 2 +- .../compilers/update_resource_compiler.ex | 3 ++- farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index ea2158f0..4fba3138 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -10.0.0-rc27 +10.0.0-rc28 diff --git a/farmbot_celery_script/lib/farmbot_celery_script/compilers/update_resource_compiler.ex b/farmbot_celery_script/lib/farmbot_celery_script/compilers/update_resource_compiler.ex index 8e78ca5b..a68b2ff4 100644 --- a/farmbot_celery_script/lib/farmbot_celery_script/compilers/update_resource_compiler.ex +++ b/farmbot_celery_script/lib/farmbot_celery_script/compilers/update_resource_compiler.ex @@ -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) diff --git a/farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex b/farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex index 15b7182b..4fd4dbd0 100644 --- a/farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex +++ b/farmbot_ext/lib/farmbot_ext/api/dirty_worker.ex @@ -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 [