Calling a service w/o waiting for it's completion - possible or not?

I may call a script and not wait for it’s completion:

  - service: script.turn_on
    target:
      entity_id: script.xxxxxxxx
    data:
      variables:
        var1: ...
        var2: ...

Compare with this variant where we wait for the completion:

  - service: script.xxxxxxxx
    data:
      var1: ...
      var2: ...

But is it possible to call a service and not wait for it’s completion?

Tried this with no success:

  - service: script.turn_on
    target:
      entity_id: switch.toggle
    data:
      variables:
        entity_id: switch.test.switch

or

  - service: script.turn_on
    target:
      entity_id: switch.toggle
    data:
      entity_id: switch.test.switch

Probably I may create a “wrapper” script for some service and call it by using “script.turn_on”. But is there other way?

You can’t use a script service call with a non-script entity, nor can you specify multiple entity_ids like that. In any case, it sounds like you want this:

Not sure.

Assume there is an automation which processes some data (incl. changing them) + posting messages to Telegram (kind of logging).
I have a script (“script.post_message”) which does the very posting by Telegram (using some “notify.xxx” service).
So, this automation calls this script with args like “telegram chat”, “message”, …
And this call is performed by using “script.turn_on”.
So the automation does NOT wait for completion of this posting (which needs time).

My intention is to rebuild this script to allow a “wait for a completion” behaviour if needed:
– the automation calls the script “explicitly” (i.e. by “service: script.post_message”);
– the script either calls the “notify.xxx” service “explicitly” (i.e. by “service: notify.xxx”) and waits for it’s completion;
or (depends on some input arg)
– the script calls the “notify.xxx” service and LEAVES (not waits for it’s completion).

I wonder if it is possible.

Coming back to this topic.
Assume there is a script which sends a notification via 2 channels (for instance, Telegram & persistent notifications) based on some input conditions:

script:
  my_notify:
    ...
    sequence:
      - service: notify.xxx
        data:
          message: "some_message"
      - service: notify.yyy
        data:
          message: "some_message"

Consider these 2 automations:
The 1st automation:
– perform action_1;
– call a script to notify - and wait for it completion;
– perform action_2.

  - alias: do_smth_and_notify_1
    ...
    action:
      - action_1
      - service: script.my_notify
        data:
          ...
      - action_2

The 2nd automation:
– perform action_1;
– call a script to notify - and DO NOT wait for it completion;
– perform action_2.

  - alias: do_smth_and_notify_2
    ...
    action:
      - action_1
      - service: script.turn_on
        target:
          entity_id: script.my_notify
        data:
          variables:
            ...
      - action_2

Now I want to use only this SAME call in both automations:

  - alias: do_smth_and_notify_2
    ...
    action:
      - action_1
      - service: script.my_notify_advanced
        data:
          ...pass a mode as a variable
      - action_2

where the “my_notify_advanced” script choose a mode dependingly on some input variable:
– either call those “notify.xxx” & “notify.yyy” services, wait for their completions and then return;
– or call these services and immediately return (do not wait for their completion).

So, the question is - is it possible to call some service and DO NOT wait for its completion?