How to check is a batch is running on an app without running into rate limits?

Comments

2 comments

  • Andreas Garnæs

    Hi Timo,

    When a batch completes you get an push event for the notification, which you could use to detect completion. The event looks something like this:

    [{
          "data":{
             "channel":"/user/1305341",
             "data":{
                "event":"notification_create",
                "ref":{
                   "type":"user",
                   "id":1305341
                },
                "data":{
                   "notification_id":628753005,
                   "text":"Your export Foo has completed",
                   "settings":{
                      "sound":false,
                      "popup":true,
                      "browser":false
                   },
                   "link":"https://podio.com/batches/5920018",
                   "icon":"batch_complete"
                },
                "created_by":{
                   "type":"system",
                   "id":0
                },
                "created_via":1
             }
          },
          "clientId":"foo",
          "id":"bar"
       }
    ]
    

    You can read more about push events here: https://developers.podio.com/examples/push

    Best,
    Andreas

    0
    Comment actions Permalink
  • Timo Sillander

    Thank you for pointing me to the right direction. Looks like I'm in for some studying :-)

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk