This topic describes the syntax of the task configuration function and provides parameter description and function examples.

res_local_update

You can call this function to update advanced parameters of the current data processing task. Generally, this function is used for testing.
  • Syntax
    res_local_update(data, reset=False, once=True)
  • Parameters
    Parameter Type Required? Description
    data Dictionary Yes The data of the dictionary type. Both the keys and values must be strings.
    reset Boolean No Specifies whether to clear advanced parameters of the current data processing task before the update. Default value: False.
    once Boolean No Specifies whether to set advanced parameters only once. Default value: True. If you set this parameter to False, the advanced parameters will be set whenever an event is processed.
  • Response

    The advanced parameters of the data processing task are updated. No modification is made to events.

  • Configuration for testing

    You can call this function to temporarily modify the advanced parameters of a data processing task for the testing purpose, instead of using the existing advanced parameters of the task.

  • Examples
    res_local_update({"username": "admin", "pwd": "...."})
    e_table_lookup("city", res_rds_mysql(..., res_loca("username"),  res_loca("pwd"), ...), ["province", "pop"])