Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while (getJobStatusv2(jo.GetValue('job_id').Value, token) <> 'finished') and (not i = 8640) do
- begin
- sleep(10000);
- i := i + 1;
- end;
- if i >= 8640 then
- begin
- host.DBConnection.QueryExec('insert into PriceAPI_Jobs(jobid, timeout) values(:jobid, :timeout)',
- VarArrayOf(['jobid', 'timeout']),
- VarArrayOf([jo.GetValue('job_id').Value, timeout]));
- end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement