mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 16:02:28 +00:00
15 lines
431 B
TypeScript
15 lines
431 B
TypeScript
export default `import wmill
|
|
|
|
|
|
def main():
|
|
# A common trigger script would follow this pattern:
|
|
# 1. Get the last saved state
|
|
# state = wmill.get_state()
|
|
# 2. Get the actual state from the external service
|
|
# newState = ...
|
|
# 3. Compare the two states and update the internal state
|
|
# wmill.setState(newState)
|
|
# 4. Return the new rows
|
|
# return range from (state to newState)
|
|
return [1, 2, 3]`
|