Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9060441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T15:13:49+00:00 2026-06-16T15:13:49+00:00

I have some big query jobs that have failed, I’m trying to develop a

  • 0

I have some big query jobs that have failed, I’m trying to develop a retry mechanism in which I will save all jobs that have failed in the data store and later on reattempt to run them.
so, I have my own object “JobFailed” which have some properties that “Job” is one of them.
“Job” is not serialize able and cannot be serialized or to be embed in a data store entity (or at least I wasn’t able to do so..)
so what are my options?
must I make my own object to save in the data store and parse it when its being pulled out to build a job object?
can I inherit job into my own and put an Entity annotation on it and save it as a standalone entity which is connected to my JobFailed entity? will that work?

Another possibility is saving only JobId in dataStore and getting the job when I want it ,with the “get” method in the BigQuery Api . (but I prefer saving it to datastore..)

thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T15:13:50+00:00Added an answer on June 16, 2026 at 3:13 pm

    I might be misunderstanding the question, but can’t you just pull out the status and error message from the API response?

    project_number = 'XXXXXXXX'
    job_id = 'job_600b919ee97a4eXXXXXXXX'
    
    bigquery_service = build('bigquery', 'v2', http=http)
    jobs = bigquery_service.jobs()
    
    job = jobs.get(projectId=project_number,
                   jobId=job_id).execute()
    
    # Result
    job_state = job['state']
    job_error = job['errorResult']['reason'] if job.get('errorResult') else ''
    

    And then store this information in a Datastore model such as:

    class BigQueryJob(db.Model):
      job_id = db.StringProperty(required=True)
      status = db.StringProperty(required=True)
      error = db.StringProperty()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a big fat query that's written dynamically to integrate some data. Basically
I have a really big query in which makes some troubles for me because
I have a big chunk of HTML which is a template for some data
I have some arbitrary pixel data that I want to save as a PNG.
I have some anonymous branches in dev named branch that eventually will be merged
I have a big mysql query which needs to trawl through 4 tables to
I have a big list of points that define a boundary of some (not
I have a database table that contains Swedish/Norwegian strings. When I query some data,
I have a big query in MySQL for magento which takes way to much
I'm not a real big TSSQL expert. We have a query that returns almost

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.