-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
glue-client: get_job_run
response missing the Arguments key
#3506
Comments
Arguments key is always missing for manual Glue job runs with default Job arguments set. |
@andhrelja Please can you re-open this case ? |
Reopened this issue as my proposed resolution is not applicable for general public as noted by @simonB2020 |
Hello and thanks for reaching out. The get_job_run Boto3 command corresponds to the GetJobRun Glue API. Therefore, any issues with the API would need to be escalated to the Glue team. (We recommend reaching out through AWS Support for issues involving service APIs if you have a support plan, but we can also reach internally on your behalf.) I think we need a little more information in order to better understand the issue here. It looks like there are many nuances involved with how
Could you provide more details regarding the circumstances under which this issue occurs? For example, a minimal reproducible code snippet, and the Boto3 version installed. If you can share your debug logs (with any sensitive info redacted) by adding |
Hey @tim-finnigan Not sure if you saw the issue description above, it shows the installed boto3 version and the reproduction code snippet. Circumstances:
I hope the code snipped explains why an assertion error happens. I would expect the "Arguments" response (dict) contains the arguments that were used to run the created Glue job, but that is not the case. @simonB2020 please expand if needed |
I think the reference to Boto3 is a red herring here. The first thing the occurring in the example script, is to use Boto3 to first get the runid from the job name. Could this not be provided by default as per Spark jobs ? This would ensure both issues : Thanks |
@simonB2020 the API does not know which JobId is the one I want. In my scenario, I collect all available job runs and then I would use the
Based on this reply, I assumed you have a similar use-case and could elaborate on it. Your latest reply suggests a feature that should really be a separate issue. |
"feature that should really be a separate issue" Not sure my use case is much different to the original. |
Well, my Resolution proposal is not a fix per-se, but it clarified the missing |
Hi @andhrelja - get_job_run maps to the AWS Glue GetJobRun API, and already accepts I think I'm missing some context here, I'm not entirely clear on your use case. The AWS Glue User Guide has a section on working with Spark jobs that we can refer to. |
Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one. |
@tim-finnigan (we cannot use Boto3 API as this will not give the correct run_id in the scenario of concurrent or rapidly sequential executions) |
Thanks for following up and your patience here. As I mentioned, the Boto3 Python SDK uses the Glue service APIs, so any requests directly involving those APIs would need to get escalated to the Glue team. You can reach out through AWS Support for issues like this, or if you don't have a support plan, please create an issue in our cross-SDK respository and someone can reach out internally to the Glue team on your behalf regarding this issue. |
|
Describe the bug
AWS Glue job type: Python shell
AWS Glue version: 1.0
Python version: 3.6
botocore==1.26.16
boto3== 1.29.16
I am using the get_job_run function to retrieve a Glue Job's Run ID.
I use the
Arguments
dict from the function's response to uniquely identify a Glue Job run.The
Arguments
dict is not available inget_job_run
andget_job_runs
response objects.Expected Behavior
Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
Tried to downgrade multiple boto3 versions (through 1.22.6), but the behavior was the same
SDK version used
1.26.16
Environment details (OS name and version, etc.)
Python shell; Glue 1.0
The text was updated successfully, but these errors were encountered: