# Callback (async)

Schedule time when async step will be sent to next step

# Config

async:

	config:

		# Required | Type: string | Default: null
		# Time at which will async step start. Null value means reset of async step
		#
		### Examples
		### - null
		### - my_variable
		### - now
		### - 10 September 2030
		### - +1 day
		### - +1 week 2 days 4 hours 2 seconds
		### - next Thursday
		to: "+1 day"

		# Optional | Type: string | Default: null
		# Configured async step. By default is used current step
		step: "mystep"

		# Optional | Type: array | Default: []
		# List of relative times
		#
		### Note
		### Must be specified if `variable` is empty
		sliding: [" + 5 days", " + 2 hours"]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# Examples

There are several ways the callback can be used:

  • to = null
  • sliding = ['+5 days', '+ 2 hours']

Async start time will be set to + 5 days and 2 hours from callback start .

  • to = samoe value (for example a string "first day of month" or a timestamp "123456789")
  • sliding = []

Async start time will be set to the value in to .

  • to = some value
  • sliding = ['+5 days', '+ 2 hours']

We take value from to and apply sliding to it like in the first example . Async start time will be set to the result.