Trigger task scanner multiple times on same user

Tagged: ,

This topic has 0 replies, 1 voice, and was last updated 4 weeks, 1 day ago by YishuSun.

  • Author
    Posts
  • #28505
     YishuSun
    Participant

    Hi everyone,

    I am trying to use task scanner. I find that if a user complete a task, this user wont trigger another task(if they query on same attribute) in 4 hours( + timeout you set).

    My query is: "_queryFilter" : "((/repeat/date gt \"${Time.now}\"))", and timeout is "timeout" : "3m"

    This task will triggered when I create it and for second time, it will be triggered at 4 hours and 3 mins later.

    Do idm have ability to make this interval lower than 4 hours?

    code for task scanner shows as follow:

    {
        "enabled" : true,
        "type" : "simple",
        "repeatInterval" : 60000,
        "persisted": true,
        "concurrentExecution" : false,
        "invokeService" : "taskscanner",
        "invokeContext" : {
          "waitForCompletion" : false,
          "numberOfThreads" : 5, 
          "scan" : { 
            "_queryFilter" : "((/repeat/date gt \"${Time.now}\"))",
            "object" : "managed/user",
            "taskState" : {
              "started" : "/repeat/task-started",
              "completed" : "/repeat/task-completed"
            },
            "recovery" : {
              "timeout" : "3m"
            }
          },
          "task" : {
            "script" : {
              "type" : "text/javascript",
              "file" : "script/repeattest.js"
            }
          }
        }
      } 
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?