update
This commit is contained in:
parent
e1f1bf76ad
commit
5e38fff41d
|
|
@ -1,17 +0,0 @@
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
import logging
|
|
||||||
from typing import Any
|
|
||||||
|
|
||||||
from app.jobs.base import BaseJob
|
|
||||||
|
|
||||||
logger = logging.getLogger("connecthub.test.job")
|
|
||||||
|
|
||||||
class testJob(BaseJob):
|
|
||||||
job_id = "test.job"
|
|
||||||
|
|
||||||
def run(self, params: dict[str, Any], secrets: dict[str, Any]) -> dict[str, Any]:
|
|
||||||
message = str(params.get("message") or "").strip()
|
|
||||||
|
|
||||||
logger.info("Message says:" + message)
|
|
||||||
return {"message": "hello, world"}
|
|
||||||
Loading…
Reference in New Issue