boomerang-io / community

The Boomerang community, roadmap, planning, and architecture repository. The central place for information on joining, contributing, and governance.
https://useboomerang.io
Apache License 2.0
11 stars 0 forks source link

Engine - Implement Sleep Task as a System Task #384

Closed tlawrie closed 11 months ago

tlawrie commented 1 year ago

Add a new TaskType of sleep and implement the appropriate steps for it as well as a version 2 of the Task Template

tlawrie commented 1 year ago
{
    "_id" : ObjectId("64225fbf59693175e616e3a7"),
    "name" : "sleep",
    "displayName" : "Sleep",
    "description" : "Sleep for specified duration in milliseconds",
    "labels" : {},
    "annotations" : {
        "io#boomerang/kind" : "TaskTemplate",
        "io#boomerang/generation" : "4"
    },
    "version" : 2,
    "creationDate" : ISODate("2023-03-28T02:25:28.044Z"),
    "changelog" : {
        "reason" : "Initial Task Template",
        "date" : ISODate("2023-03-28T02:25:28.044Z")
    },
    "category" : "Workflow",
    "type" : "sleep",
    "spec" : {
        "arguments" : [],
        "command" : [],
        "params" : [ 
            {
                "name" : "duration",
                "type" : "string",
                "description" : ""
            }
        ],
        "image" : ""
    },
    "status" : "active",
    "config" : [ 
        {
            "description" : "",
            "key" : "duration",
            "label" : "Duration",
            "type" : "text",
            "placeholder" : "",
            "readOnly" : false
        }
    ],
    "icon" : "Power on/off",
    "verified" : true,
    "scope" : "global",
    "_class" : "io.boomerang.model.TaskTemplate"
}
tlawrie commented 1 year ago

Loader updated in 1.0.0-beta.18

tlawrie commented 1 year ago

Removed from worker on branch feat-v4