Unschedule

Unschedules tasks in an external database.

Usage

unschedule (requested-task-ids, connect-string, user, password : verified-task-ids)

Details

Unschedules tasks identified by requested-task-ids from a task table in an external database reachable through connect-string, in a schema accessible by user via password. Those tasks successfully cancelled (i.e., deleted from the database) will be returned as verified-task-ids.

Notes

Known Bugs

Example

Using the input:
      RELATION task_ids: info char
      1
      2
    
when executing the plan:
      PLAN test
      {
       INPUT: stream task_ids
       OUTPUT: stream verified_ids
      
       BODY
       {
         unschedule (task_ids, "jdbc:oracle:thin:@mydb", "scott", "tiger" : verified_ids)
       }
      }
    
will delete the tasks identified by 1 and 2 in the task table and will output:
      ----------------------------------------------
      RELATION: test_tasks
         attrs: verified_ids
      ----------------------------------------------
      1
      2
      ----------------------------------------------