Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Analytics reporting jobs issues #62

Open
sbrossie opened this issue Apr 29, 2016 · 0 comments
Open

Analytics reporting jobs issues #62

sbrossie opened this issue Apr 29, 2016 · 0 comments
Labels

Comments

@sbrossie
Copy link
Member

The first issue seems to be that after we post a new report, nothing happens (this may be an issue with the curl, which i don't have but both Pierre and I ran it, and jobs were not scheduled.

The second issue is that after i updated the job, the notification was correctly created, but then code keeps inserting notifications:

CURL to submit the job:

curl -v \
     -X PUT \
     -u 'superadmin:$uper@dmin13' \
     -H 'X-Killbill-ApiKey:demoKey' \
     -H 'X-Killbill-ApiSecret:demo$3cr3t' \
     -H 'Content-Type: application/json' \
     -d '{"reportPrettyName": "MRR",
          "refreshProcedureName": "refresh_mrr_daily",
          "refreshFrequency": "DAILY"}' \
     "http://127.0.0.1:8080/plugins/killbill-analytics/reports/mrr_daily"
> select count(*) from analytics_notifications_history where queue_name = 'AnalyticsService:reports-jobs'\G
count(*): 238
1 row in set (0.03 sec)

The code inserted it 238 times (and the next one is in a few minutes)... all for the same storeproc refresh_mrr_daily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant