Extract Refresh task with a Daily schedule don't work as expected
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
Start with samples/create_extract_task.py and samples/create_schedules.py, especially the DailyInterval example, then reproduce the task creation against Tableau API 3.24. Done means a Daily schedule without weekday arguments creates a task running once at 5:40 AM, while explicitly listing all weekdays does not produce an hourly schedule.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When creating an Extract Refresh task with a Daily schedule following the provided example, I either get an "Error 500" from the server or a task that's running every hour instead of once a day.
Versions
Details of your environment, including:
- Tableau Server version: Tableau Cloud 2024.3.0 (20243.24.1011.1935) 64-bit Linux
- Python version: 3.11.10
- TSC library version: 0.33
To Reproduce
When following the example code above with a Daily interval as described in this sample
tableau_auth = TSC.PersonalAccessTokenAuth(TOKEN_NAME, api_token, SERVER_SITE)
tableau_server = TSC.Server(SERVER_URL, use_server_version=False)
tableau_server.version = '3.24'
with tableau_server.auth.sign_in(tableau_auth):
workbook = TSC.WorkbookItem(name=WORKBOOK_NAME, project_id=project)
daily_interval = TSC.DailyInterval(start_time=datetime.time(hour=5, minute=40, tzinfo=datetime.UTC))
daily_schedule = TSC.ScheduleItem(None, None, None, None, daily_interval)
target_item = TSC.Target(workbook.id, 'workbook')
extract_item = TSC.TaskItem(None, 'FullRefresh', None, None, None, daily_schedule, None, target_item)
tableau_server.tasks.create(extract_item)
I'm getting he following error:
Internal error 500 at https://eu-west-1a.online.tableau.com/api/3.24/sites/288c88d2-8f35-4faa-b71c-bc082f0ded3c/tasks/extractRefreshes
b'<?xml version=\'1.0\' encoding=\'UTF-8\'?><tsResponse xmlns="http://tableau.com/api" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tableau.com/api https://help.tableau.com/samples/en-us/rest_api/ts-api_3_24.xsd"><error code="500000"><summary>Internal Server Error</summary><detail>The server encountered an error and cannot complete your request. Contact your server administrator.</detail></error></tsResponse>'
Now if instead I declare the list of weekdays in the Daily interval:
daily_interval = TSC.DailyInterval(datetime.time(hour=5, minute=40, tzinfo=datetime.UTC),
'Monday', 'Tuesday', 'Wednesday', 'Thursday',
'Friday', 'Saturday', 'Sunday')
then a Refresh Task is created but it's scheduled to run every hour instead of once a day at 5:40AM as expected.
- Ngôn ngữ chính
- Python
- Star
- 716
- Fork
- 446
- Merge trung bình
- 8 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 2
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tableau/server-client-python
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
tableau/server-client-python#1865 ·
-
in-progress
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
tableau/server-client-python#1829 · 1 bình luận ·
-
enhancement gap needs investigation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tableau/server-client-python#1322 · 1 bình luận ·
-
[Type2] Allow Incremental Refresh type schedules to be added via `server.schedules.add_to_schedule` Đang mởhelp wanted Server-Side Enhancement ui-exists
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tableau/server-client-python#1101 · 3 bình luận ·
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
tableau/server-client-python#783 · 5 bình luận ·
Tất cả issue của tableau/server-client-python
Issue tương tự
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
canonical/paas-charm#368 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
addition to tracking list Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
StevenBlack/hosts#3256 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
qualcomm/qai-appbuilder#275 ·